statemachine library

Generic state machine framework.

Classes

EntryTransition
A callback that is triggered when the state activates.
ExitTransition
A callback that is triggered when the state deactivates.
FutureTransition<T>
A transition that is triggered one time by a future.
Machine
The state machine itself.
NestedTransition
A transition that triggers a nested state machine.
State
State of the state machine.
StreamTransition<T>
A transition that is triggered through a stream.
TimeoutTransition
A transition that happens automatically after a certain duration elapsed.
Transition
A transition from one state to another.

Typedefs

Callback0 = void Function()
A callback with no argument.
Callback1<T> = void Function(T value)
A callback with one argument.