GraphBuilder<STATE, EVENT, SIDE_EFFECT> class
Builder for FSM.
Instance of this class is passed to StateMachine.create method.
Constructors
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
-
build(
) → Graph< STATE, EVENT, SIDE_EFFECT> -
initialState(
STATE state) → void - Sets initial state.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onTransition(
TransitionListener< STATE, EVENT, SIDE_EFFECT> listener) → void -
Sets
listener
that will be called on each transition. -
state<
S extends STATE> (BuildState< S, STATE, EVENT, SIDE_EFFECT> buildState) → void - Adds state definition.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited