dispatchTakeResult<R> method

  1. @internal
  2. @nonVirtual
R dispatchTakeResult<R>(
  1. BaseReduxActionWithResult<ReduxNotifier<T>, T, R> action, {
  2. String? debugOrigin,
  3. LabeledReference? debugOriginRef,
})

Dispatches an action and updates the state. Returns only the result of the action.

For library consumers, use:

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;
}