FunctionalWidgetGenerator class

A generator that outputs widgets from a function

The function must be decorated by @swidget and be a top level function. The type of the widget is infered by the arguments of the function and defaults to StatelessWidget

Constructors

FunctionalWidgetGenerator([FunctionalWidget? options])

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
throwOnUnresolved bool
finalinherited
typeChecker → TypeChecker
no setterinherited

Methods

generate(LibraryReader library, BuildStep buildStep) FutureOr<String>
Generates Dart code for an input Dart library.
inherited
generateForAnnotatedElement(Element element, ConstantReader annotation, BuildStep buildStep) Future<String>
Implement to return source code to generate for element.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited