dispatchAsyncWithResult<R> method

Future<(T, R)> dispatchAsyncWithResult<R>(
  1. BaseAsyncReduxActionWithResult<ReduxNotifier<T>, T, R> 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, R)> dispatchAsyncWithResult<R>(
  BaseAsyncReduxActionWithResult<ReduxNotifier<T>, T, R> action, {
  String? debugOrigin,
}) {
  return notifier.dispatchAsyncWithResult(action, debugOrigin: debugOrigin);
}