dispatchAsyncWithResult<R2> method

Future<(ActionState, R2)> dispatchAsyncWithResult<R2>(
  1. BaseAsyncReduxActionWithResult<ActionService, ActionState, R2> action, {
  2. String? debugOrigin,
})
inherited

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