dispatchAsyncWithResult<R2> method
Future<(HomePageState, R2)>
dispatchAsyncWithResult<R2>(
- BaseAsyncReduxActionWithResult<
HomePageController, HomePageState, R2> action, { - 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,
);
}