State<C extends MachineContext, T extends StateTransition<C>> class abstract interface

Finite 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

evaluate(C ctx, DateTime now) → T?
Called by machine.tick() to evaluate each transitions
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
onExit(State<C, T>? next, C ctx, DateTime now) Future<void>
Called before old state exited
onPause(C ctx, DateTime now) Future<void>
Called before current state paused
onResume(C ctx, DateTime now) Future<void>
Called after current state resumed
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited