StateMachine<T> class

Constructors

StateMachine([T? initial])

Properties

hashCode int
The hash code for this object.
no setterinherited
onAfterStateChange StateChangeCallback<T>?
getter/setter pair
onBeforeStateChange StateChangeCallback<T>?
getter/setter pair
previousState ↔ T?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state ↔ T?
getter/setter pair

Methods

add(T name, {VoidCallback? onEnter, UpdateCallback? onUpdate, dynamic onDraw(Canvas canvas, Size size)?, VoidCallback? onExit}) → void
draw(Canvas canvas, Size size) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() → void
restartState({bool triggerStateChange = false}) → void
toString() String
A string representation of this object.
inherited
update(double dt) → void

Operators

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