Store<State> class
abstract
Constructors
- Store(State initialState)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isClosed → bool
-
Whether the object is closed.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → State
-
The current state.
no setterinherited
-
stream
→ Stream<
State> -
The current stream of states.
no setterinherited
Methods
-
close(
) → Future< void> -
Closes the instance.
This method should be called when the instance is no longer needed.
Once close is called, the instance can no longer be used.
override
-
disembark<
E> (Truck truck, EventListener< E> listener) → dynamic -
emit(
State state) → void -
override
-
emitOnEach<
T> (Stream< T> stream, {required State onData(T data), State onError(Object error, StackTrace stackTrace)?}) → Future<void> -
listen(
void onData(State event)?, {Function? onError, void onDone()?, bool? cancelOnError}) → StreamSubscription< State> -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onChange(
Change< State> change) → void -
onError(
Object error, StackTrace stackTrace) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited