WidgetAnnotation class
Writing a Widget becomes much simpler with the @WidgetAnnotation()
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.
Constructors
- WidgetAnnotation({bool assertions = false, bool restAction = false})
-
Writing a Widget becomes much simpler with the
@WidgetAnnotation()
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.const
Properties
- assertions → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- restAction → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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