SagaMiddleware class abstract
Middleware class that runs Sagas. It is an abstract class. To instantiate a middleware use createSagaMiddleware helper function.
Constructors
Properties
- dispatch ↔ DispatchHandler?
-
Used to fulfill Put effects.
getter/setter pair
- getState ↔ GetStateHandler?
-
Used to fulfill Select effects
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
run(
Function saga, {List args, Map< Symbol, dynamic> namedArgs, Function Catch, Function Finally, String name}) → Task -
Dynamically run
saga
. Can be used to run Sagas only after the applyMiddleware and SagaMiddleware.setStore phase. -
setContext(
Map context) → void -
Extends middlewares default context with the provided
context
-
setStore(
Store value) → void - Sets middleware store. It must be set right after applyMiddleware.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited