Closed bluegearapps closed 2 years ago
Thank you for the great plugin! How can we create import for .g.dart file? i have a bunch of similar imports need to be added to each .g.dart file. Thank you!
import
You can add import directives to your output like this:
@override void apply(Class target, LibraryBuilder output) { output.directives.add(Directive.import('package:my_package/my_file.dart')); }
Thank you for the great plugin! How can we create
import
for .g.dart file? i have a bunch of similar imports need to be added to each .g.dart file. Thank you!