StateRTEMachine<S, C, L> class
A state machine for StateReaderTaskEither.
- Implemented types
Constructors
- StateRTEMachine(S _state, C context)
Properties
- closed → bool
-
true
if close has been calledno setter - context → C
-
The context / environment passed to the StateReaderTaskEither's.
final
- 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 machineno setteroverride -
stream
→ Stream<
S> -
A Stream of state changes
no setteroverride
Methods
-
close(
) → void -
Closes the internal StreamController
override
-
evaluate<
R> (StateReaderTaskEither< S, C, L, R> state) → FutureOr<Either< L, R> > - Run the computation and returns the result only.
-
evaluateSeq(
Iterable< StateReaderTaskEither< arr) → FutureOr<S, C, L, dynamic> >Either< L, IList> > - Run the computations in sequence, only returning the results
-
execute<
R> (StateReaderTaskEither< S, C, L, R> state) → FutureOr<Either< L, S> > - Run the computation and returns the state only.
-
executeSeq(
Iterable< StateReaderTaskEither< arr) → FutureOr<S, C, L, dynamic> >Either< L, IList< >S> > - Run the computations in sequence, only returning the new states
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
run<
R> (StateReaderTaskEither< S, C, L, R> state) → FutureOr<Either< L, dynamic> > - Run the computation and returns a tuple of the result and state.
-
sequence(
Iterable< StateReaderTaskEither< arr) → FutureOr<S, C, L, dynamic> >Either< L, IList> > - Run the computations in sequence
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited