build method

void build(
  1. Store<State, StateBuilder, Actions> store
)

build sets up a subscription to the registered actions

Implementation

void build(Store<State, StateBuilder, Actions> store) {
  _subscription = store.stream
      .listen((StoreChange<State, StateBuilder, dynamic> storeChange) {
    var handler = _map[storeChange.action.name];
    if (handler != null) handler(storeChange);
  });
}