dispatchWithResult<R2> method

(T, R2) dispatchWithResult<R2>(
  1. BaseReduxActionWithResult<N, T, R2> action, {
  2. String? debugOrigin,
})

Dispatches an action and updates the state. Returns the new state along with the result of the action.

Implementation

(T, R2) dispatchWithResult<R2>(
  BaseReduxActionWithResult<N, T, R2> action, {
  String? debugOrigin,
}) {
  return notifier.dispatchWithResult<R2>(
    action,
    debugOrigin: debugOrigin ?? this.debugOrigin,
    debugOriginRef: debugOriginRef,
  );
}