EpicMiddleware<State> class
A Redux middleware that passes a stream of dispatched actions to the given Epic.
It is recommended that you put your EpicMiddleware
first when constructing
the list of middleware for your store so any actions dispatched from
your Epic will be intercepted by the remaining Middleware.
Example:
var epicMiddleware = new EpicMiddleware(new ExampleEpic());
var store = new Store<List<Action>, Action>(reducer,
initialState: [], middleware: [epicMiddleware]);
Constructors
-
EpicMiddleware(Epic<
State> epic, {bool supportAsyncGenerators = true})
Properties
-
epic
↔ Epic<
State> -
Gets or replaces the epic currently used by the middleware.
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
- supportAsyncGenerators → bool
-
final
Methods
-
call(
Store< State> store, dynamic action, NextDispatcher next) → void -
A
Middleware
function that intercepts a dispatched action -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited