GraphBuilder<STATE, EVENT, SIDE_EFFECT> class

Builder for FSM.

Instance of this class is passed to StateMachine.create method.

Constructors

GraphBuilder()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

build() Graph<STATE, EVENT, SIDE_EFFECT>
initialState(STATE state) → void
Sets initial state.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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