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.new(D create())
-
Creates an InitialData that will call the
create
function 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
getInitialData
function, 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
value
as 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>