DataState<D> class State Trees Message Handlers Transition Handlers

A data state with associated state data of type D.

Implemented types

Constructors

DataState.new(DataStateKey<D> key, InitialData<D> initialData, {TransitionHandler? onEnter, TransitionHandler? onExit, MessageHandler? onMessage, StateDataCodec<D>? codec, List<TreeStateFilter> filters = const []})
Constructs a leaf data state identified by key, with associated state data of type D.
factory
DataState.composite(DataStateKey<D> key, InitialData<D> initialData, InitialChild initialChild, {TransitionHandler? onEnter, TransitionHandler? onExit, MessageHandler? onMessage, required List<StateConfig> childStates, StateDataCodec<D>? codec, List<TreeStateFilter> filters = const []})
Constructs a composite data state identified by key, with associated state data of type D.
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

nodeInfo(TreeNodeInfo parent) TreeNodeInfo
Constructs a TreeNodeInfo representing the tree state, with the specified parent node.
override
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