dispatchAsyncWithResult<R2> method
Future<(ServerState, R2)>
dispatchAsyncWithResult<R2>(
- BaseAsyncReduxActionWithResult<
InspectorServer, ServerState, 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,
);
}