FluxToReduxAdapterStore<S extends InfluxStoreMixin> constructor
FluxToReduxAdapterStore<S extends InfluxStoreMixin> (
- S store,
- dynamic actions, {
- List<
Middleware< ? middleware,S> >
Implementation
FluxToReduxAdapterStore(this.store, dynamic actions,
{List<redux.Middleware<S>>? middleware})
: super((_, action) {
store.influxReducer(action);
return store;
},
middleware: middleware ?? const [],
initialState: store,
distinct: false) {
_storeListener = store.listen((_) {
store._triggerReduxUpdateFromFlux(dispatch);
});
actionsForStore[store] = actions;
}