Closed E-MRE closed 10 months ago
Unfortunately annotations can't rely on or use any types from flutter or dart:ui
. This is because isolates (which are used behind the scenes) don't support importing dart:ui
. I'm afraid there is nothing I can do.
The outputted code however can use flutter or dart:ui
. So maybe just pass the color as a string.
When I try to add Color type variable, generator throws errors. Here is my code:
ClassAnnotation:
Other class:
Build result: