Wdg top-level constant
WidgetAnnotation
const Wdg
Writing a Widget becomes much simpler with the @Wdg
annotation. You can just give it a function with needed parameters which returns a new Widget and the generators will figure out a Widget class to go along with it.
@Wdg
Widget helloName(String name, {String lastname = '', Context context}) => For.of([
Comment('This was generated by HelloName on version ${context.version}'),
Log('Hello $name $lastname!'),
]);
Implementation
// ignore: constant_identifier_names
const Wdg = WidgetAnnotation();