call method

  1. @override
State call(
  1. State state,
  2. dynamic action
)
override

The Reducer function that converts the current state and action into a new state

Implementation

@override
State call(State state, dynamic action) {
  if (action is Action) {
    return reducer(state, action);
  }

  return state;
}