mutation library

Classes

Dispatcher
A dispatcher represents a state machine that can dispatch events to trigger a mutation of its state
Event
Can be dispatched from a Dispatcher to trigger a mutation of a State.
State
Represents a Dispatcher state
StateMutator
A set of mutations that are reacting to supported events.
TypedStateMutator<S extends State>
A mutator that can only mutate states of type S.

Typedefs

Mutation(State state, Event event) FutureOr<State>
A mutation of the current state to a new State from the given event.