Store<T, A> class
abstract
Constructors
- Store([T? state])
Properties
- cData → T?
-
Last emitted cached data
no setter
-
controller
→ ModifiedBehaviorSubject<
StateSnapshot< T> > -
Controller of the event stream
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
rawStream
→ Stream<
T> -
It returns a stream of
T
insted of StateSnapshotno setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- setInitialState → bool
-
no setter
-
state
→ StateSnapshot<
T> -
Current state
no setter
-
stream
→ Stream<
StateSnapshot< T> > -
no setter
Methods
-
addWorker(
Worker worker) → void - Add a listerner that executes everytime the specified action is executed
-
dispose(
) → void -
listen(
void onData(StateSnapshot< T> value), {Function? onError, void onDone()?, bool? cancelOnError}) → StreamSubscription<StateSnapshot< T> > -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reducer(
A mutation) → void -
removeWorker(
Worker worker) → void -
Returns
true
if a worker is removed -
setDefaultMiddlewares(
List< Middleware> middlewares) → void - Sets a default middlewares that will be executed on every action
-
toString(
) → String -
A string representation of this object.
inherited
-
updateState(
T data) → void - Emit a new state without error
-
updateStateWithError(
Object error) → void - Emit a state with error
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited