dispatchWithResult<R2> method
(T, R2)
dispatchWithResult<R2>(
- BaseReduxActionWithResult<
N, T, R2> action, { - String? debugOrigin,
Dispatches an action and updates the state. Returns the new state along with the result of the action.
Implementation
(T, R2) dispatchWithResult<R2>(
BaseReduxActionWithResult<N, T, R2> action, {
String? debugOrigin,
}) {
return _notifier.dispatchWithResult<R2>(
action,
debugOrigin: debugOrigin ?? debugLabel,
debugOriginRef: this,
);
}