WidgetInitializer class abstract

Abstract implementation of simple widget initializer and holder.

Implemented types
Available Extensions

Constructors

WidgetInitializer()
WidgetInitializer.initOf(InitWidgetBuilder builder, [Object? data])
factory
WidgetInitializer.of(WidgetBuilder builder, [Object? data])
factory

Properties

data Object?
Init data. Send to Widget via _args with ControlKey.initData key.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isInitialized bool
no setter
key Key?
getter/setter pair
parent BuildContext?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value Widget?
no setter

Methods

clear() → void
dispose() → void
Used to clear and dispose object. After this method call is object typically unusable and ready for GC. Can be called multiple times!
override
getWidget(BuildContext context, {dynamic forceInit = false, dynamic args}) Widget
Returns current Widget or tries to initialize new one. forceInit to re-init widget.
initWidget(BuildContext context, {dynamic args}) Widget
Widget initialization - typically called just once. Or when new initialization is forced.
isValid() bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
wrap({dynamic args}) WidgetBuilder
Wraps initializer into WidgetBuilder.

Operators

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