StateMachine<S> class

A state machine for State.

Implemented types
Available Extensions

Constructors

StateMachine(S _state)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state → S
The current state (S) of the machine
no setteroverride
stream Stream<S>
A Stream of state changes
no setteroverride

Methods

close() → void
Closes the internal StreamController
override
evaluate<A>(State<S, A> state) → A
Run the computation and returns the result only.
evaluateSeq(Iterable<State<S, dynamic>> arr) IList
Run the iterable of State's in sequence, only returning the results.
execute(State<S, dynamic> state) → S
Run the computation and returns the state only.
executeSeq(Iterable<State<S, dynamic>> arr) IList<S>
Run the iterable of State's in sequence, only returning the new states.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run<A>(State<S, A> state) → dynamic
Run the computation and returns a tuple of the result and state.
sequence(Iterable<State<S, dynamic>> arr) IList
Run the iterable of State's in sequence
toString() String
A string representation of this object.
inherited

Operators

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