dispatch method

T dispatch(
  1. SynchronousReduxAction<N, T, dynamic> action, {
  2. String? debugOrigin,
})

Dispatches a synchronous action and updates the state. Returns the new state.

Implementation

T dispatch(
  SynchronousReduxAction<N, T, dynamic> action, {
  String? debugOrigin,
}) {
  return _notifier.dispatch(
    action,
    debugOrigin: debugOrigin ?? debugLabel,
    debugOriginRef: this,
  );
}