dispatch method

  1. @override
FutureOr<ActionStatus> dispatch(
  1. ReduxAction<St> action, {
  2. bool notify = true,
})
override

Runs the action, applying its reducer, and possibly changing the store state. Note: dispatch is of type Dispatch.

Implementation

@override
FutureOr<ActionStatus> dispatch(
  ReduxAction<St> action, {
  bool notify = true,
}) {
  ReduxAction<St>? _action = _getMockedAction(action);

  return (_action == null) //
      ? Future.value(ActionStatus())
      : super.dispatch(_action, notify: notify);
}