InitialData<D> class

Provides an initial value for a data state that carries a value of type D.

Constructors

InitialData(D create())
Creates an InitialData that will call the create function to obtain 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

eval(TransitionContext transCtx) → D
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, DAncestor>(D initialValue(DAncestor parentData)) InitialData<D>
Creates an InitialData that produces its initial value by calling initialValue with a value of type DAncestor, obtained by from an ancestor state in the state tree.
fromChannel<D, P>(Channel<P> channel, D map(P payload)) InitialData<D>
fromChannelAndAncestor<D, DParent, P>(Channel<P> channel, D map(DParent parentData, P payload)) InitialData<D>