FluxToReduxAdapterStore<S extends InfluxStoreMixin> constructor

FluxToReduxAdapterStore<S extends InfluxStoreMixin>(
  1. S store,
  2. dynamic actions, {
  3. List<Middleware<S>>? middleware,
})

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;
}