BaseState<C extends MachineContext, T extends StateTransition<C>> class abstract

State with transitions

Implemented types

Constructors

BaseState.new(int index)

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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