dispatch method

ServerState dispatch(
  1. SynchronousReduxAction<InspectorServer, ServerState, dynamic> action, {
  2. String? debugOrigin,
})
inherited

Dispatches a synchronous action and updates the state. Returns the new state.

Implementation

T dispatch(
  SynchronousReduxAction<N, T, dynamic> action, {
  String? debugOrigin,
}) {
  return _notifier.dispatch(
    action,
    debugOrigin: debugOrigin ?? debugLabel,
    debugOriginRef: this,
  );
}