syncedReducer<A, S> function

Reducer<S> syncedReducer<A, S>(
  1. SyncedReducer<A, S> reducer, {
  2. S? initialState,
})

Implementation

Reducer<S> syncedReducer<A, S>(
    SyncedReducer<A, S> reducer,
  { S? initialState }
) => (dynamic action, S previousState) async {
  return reducer(action, previousState);
};