dispatch method

HomePageState dispatch(
  1. SynchronousReduxAction<HomePageController, HomePageState, 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,
  );
}