FsmState class abstract
Represents a single state in the FSM. The logic for that state will be contained here.
Constructors
- FsmState()
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onEnter(
{required FsmOwner owner}) → Future< void> - Called when transitioning into the state.
-
onEvent(
{required FsmEvent event, required FsmOwner owner}) → Future< bool> - Called when an event is received by the FSM
-
onExit(
{required FsmOwner owner}) → Future< void> - Called when transitioning out of the state.
-
onUpdate(
{required FsmOwner owner, required int time}) → Future< void> - Called during every update.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited