dispatchAsync method

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

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

Implementation

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

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