MachineDelegate<C extends MachineContext, T extends StateTransition<C> , S extends State<C, T> > class
abstract
interface
State Machine Delegate
@param <S> - state
@param <C> - context
@param <T> - transition
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
-
enterState(
S? next, C ctx, DateTime now) → Future< void> - Called before new state entered (get current state from context)
-
exitState(
S? previous, C ctx, DateTime now) → Future< void> - Called after old state exited (get current state from context)
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pauseState(
S? current, C ctx, DateTime now) → Future< void> - Called after current state paused
-
resumeState(
S? current, C ctx, DateTime now) → Future< void> - Called before current state resumed
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited