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

State machine


@param <S> - state
@param <C> - context
@param <T> - transition
Implemented types

Properties

currentState → S?
no setter
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
pause() Future<bool>
Pause machine, current state not change
resume() Future<bool>
Resume machine with current state
start() Future<bool>
Change current state to 'default'
stop() Future<bool>
Change current state to null
tick(DateTime now, Duration elapsed) Future<void>
Drive current thread forward
inherited
toString() String
A string representation of this object.
inherited

Operators

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