dispatchTakeResult<R> method
- @internal
- @nonVirtual
- BaseReduxActionWithResult<
ReduxNotifier< action, {GraphState> , GraphState, R> - String? debugOrigin,
- LabeledReference? debugOriginRef,
inherited
Dispatches an action and updates the state. Returns only the result of the action.
For library consumers, use:
BaseReduxAction.external
to dispatch external actions.external
to dispatch external actions inside the notifier.redux
to dispatch internal actions inside the notifier.
Implementation
@internal
@nonVirtual
R dispatchTakeResult<R>(
BaseReduxActionWithResult<ReduxNotifier<T>, T, R> action, {
String? debugOrigin,
LabeledReference? debugOriginRef,
}) {
return _dispatchWithResult<R>(
action,
debugOrigin: debugOrigin,
debugOriginRef: debugOriginRef,
).$2;
}