Fsm class
Handles the state transitions and forwaring of events to the fsm.
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
-
changeState(
{FsmState? nextState}) → Future< void> - Transitions the FSM to the next state and exist the previous one.
-
getCurrentState(
) → FsmState? -
handleEvent(
{required FsmEvent event}) → Future< bool> - Send event to current state for handling.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
{required int time}) → Future< void>
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited