dispatchAsyncWithResult<R> method

  1. @internal
  2. @nonVirtual
Future<(T, R)> dispatchAsyncWithResult<R>(
  1. BaseAsyncReduxActionWithResult<ReduxNotifier<T>, T, R> action, {
  2. String? debugOrigin,
  3. LabeledReference? debugOriginRef,
})

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

For library consumers, use:

Implementation

@internal
@nonVirtual
Future<(T, R)> dispatchAsyncWithResult<R>(
  BaseAsyncReduxActionWithResult<ReduxNotifier<T>, T, R> action, {
  String? debugOrigin,
  LabeledReference? debugOriginRef,
}) {
  return _dispatchAsyncWithResult<R>(
    action,
    debugOrigin: debugOrigin,
    debugOriginRef: debugOriginRef,
  );
}