dispatchAsyncWithResult<R2> method

Future<(T, R2)> dispatchAsyncWithResult<R2>(
  1. BaseAsyncReduxActionWithResult<N, T, R2> action, {
  2. String? debugOrigin,
})

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

Implementation

Future<(T, R2)> dispatchAsyncWithResult<R2>(
  BaseAsyncReduxActionWithResult<N, T, R2> action, {
  String? debugOrigin,
}) async {
  return _notifier.dispatchAsyncWithResult<R2>(
    action,
    debugOrigin: debugOrigin ?? debugLabel,
    debugOriginRef: this,
  );
}