dispatch method

SettingsState dispatch(
  1. SynchronousReduxAction<SettingsService, SettingsState, dynamic> action, {
  2. String? debugOrigin,
})
inherited

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,
  );
}