ControlArgHolder class

Holds arguments from Widget and State. Helps to transfer arguments between Widget Tree rebuilds and resurrection of State.

Implemented types
Available Extensions

Constructors

ControlArgHolder()

Properties

args Map
Current args of Widget and State.
no setter
argStore ControlArgs
ControlArgs that holds current args of Widget and State.
no setter
hashCode int
The hash code for this object.
no setterinherited
initialized bool
Checks if State is available.
no setter
isCacheActive bool
Checks if arguments cache is used and State is not currently available.
no setter
isValid bool
Checks if Widget with current State is valid.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state CoreState<CoreWidget>?
Returns current State of Widget.
no setter

Methods

copy(ControlArgHolder oldHolder) → void
Copy corresponding State and args from oldHolder.
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
findControls() List<ControlModel>
Returns all ControlModels from internal args - ControlArgs. If none found, empty List is returned.
init(CoreState<CoreWidget>? state) → void
Initializes holder with given state. args are smoothly transferred between State and Cache based on current Widget lifecycle.
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