Reducer<State, Action, Environment> constructor

const Reducer<State, Action, Environment>({
  1. required ({Effect<Action> effect, State state}) reduce(
    1. State state,
    2. Action action,
    3. Environment environment
    ),
})

Creates a reducer with the given reduce function.

Implementation

const Reducer({required this.reduce});