BaseState<C extends MachineContext, T extends StateTransition<C> > class
abstract
State with transitions
- Implemented types
-
- State<
C, T>
- State<
Constructors
- BaseState.new(int index)
Properties
Methods
-
addTransition(
T trans) → void -
evaluate(
C ctx, DateTime now) → T? -
Called by machine.tick() to evaluate each transitions
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onEnter(
State< C, T> ? previous, C ctx, DateTime now) → Future<void> -
Called after new state entered
inherited
-
onExit(
State< C, T> ? next, C ctx, DateTime now) → Future<void> -
Called before old state exited
inherited
-
onPause(
C ctx, DateTime now) → Future< void> -
Called before current state paused
inherited
-
onResume(
C ctx, DateTime now) → Future< void> -
Called after current state resumed
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited