call method

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

Implementation

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