dispatchWithResult<R2> method

(ServerState, R2) dispatchWithResult<R2>(
  1. BaseReduxActionWithResult<InspectorServer, ServerState, R2> action, {
  2. String? debugOrigin,
})
inherited

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