AutoMachine<C extends MachineContext, T extends BaseTransition<C>, S extends BaseState<C, T>> class abstract

Inheritance

Constructors

AutoMachine.new()

Properties

context → C
no setterinherited
currentState ↔ S?
getter/setter pairinherited
defaultState → S?
no setterinherited
delegate MachineDelegate<C, T, S>?
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addState(S newState) → S?
inherited
getState(int index) → S?
inherited
getTargetState(T trans) → S?
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause() Future<bool>
Pause machine, current state not change
override
resume() Future<bool>
Resume machine with current state
override
start() Future<bool>
Change current state to 'default'
override
stop() Future<bool>
Change current state to null
override
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