build method

Reducer<State, StateBuilder, dynamic> build()

build returns a reducer function that can be passed to a Store.

Implementation

Reducer<State, StateBuilder, dynamic> build() =>
    (State state, Action<dynamic> action, StateBuilder builder) {
      final reducer = _map[action.name];
      if (reducer != null) reducer(state, action, builder);
    };