Reducer<State, Action, Environment> constructor
const
Reducer<State, Action, Environment> ({
- required ({Effect<
Action> effect, State state}) reduce(- State state,
- Action action,
- Environment environment
Creates a reducer with the given reduce function.
Implementation
const Reducer({required this.reduce});