Open jaumard opened 5 years ago
The issue is about code generation in general.
Generators don't have access to dart:ui
Ho didn't know that ! That explain why I also have it for Locale ^^ Thanks for the explanation @rrousselGit ! Is it something the dart team is working on ? Look like a small limitation but can by quite annoying... Wondering why generators can't have access to this one
Because dart:ui
is flutter only. While generators are using the real dart sdk
Any tip to fix that @rrousselGit ? If I remember well you encountered the same issue with functional_widget
.
I manually extracted the type name through computeNode
when a DartType
has isUnknown
.
But this is not even remotely close to covering all scenarios.
Okay, thanks @rrousselGit.
Just looked the computeNode
declaration and it is now deprecated. :/
And it looks like it will be funny to get the parameter type token from the original type from that...
Is generated to :