InitialData<D> class
sealed
A callable class that can produce the initial data value for a data state, when the state is entered.
Constructors
- InitialData(D create())
-
Creates an InitialData that will call the
createfunction to obtain the initial data value. The function is called each time the data state is entered.factory -
InitialData.run(GetInitialData<
D?> getInitialData) -
Creates an InitialData that will call the
getInitialDatafunction, passing the TransitionContext for the transition in progress, to obtain the initial data value. The function is called each time the data state is entered.factory - InitialData.value(D value)
-
Creates an InitialData uses the specified
valueas the initial data value.factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
call(
TransitionContext transCtx) → D? - Creates the initial data value.
-
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
Static Methods
-
fromAncestor<
D, DAnc> (DataStateKey< DAnc> ancestorState, D initialValue(DAnc ancData)) → InitialData<D>