Graph<STATE, EVENT, SIDE_EFFECT> class
The immutable description of a state machine: its initial state, finish states, state definitions and transition listeners.
A graph is usually created through a GraphBuilder.
Constructors
Properties
-
finishStates
→ Set<
STATE> ? -
The states in which the machine is considered finished, if any.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialState → STATE
-
The state the machine starts in.
final
-
onTransitionListeners
→ List<
TransitionListener< STATE, EVENT, SIDE_EFFECT> > -
The listeners called on every transition.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
stateDefinitions
→ Map<
Type, _State< STATE, EVENT, SIDE_EFFECT> > -
The definitions of all states, keyed by the state's runtime type.
final
Methods
-
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