dispatchSync method
Dispatches the action, applying its reducer, and possibly changing the store state. However, if the action is ASYNC, it will throw a StoreException.
Method dispatchSync is of type DispatchSync.
See also:
- dispatch which dispatches both sync and async actions.
- dispatchAndWait which dispatches both sync and async actions, and returns a Future.
Implementation
@override
ActionStatus dispatchSync(ReduxAction<St> action, {bool notify = true}) {
ReduxAction<St>? _action = _getMockedAction(action);
return (_action == null) //
? ActionStatus()
: super.dispatchSync(_action, notify: notify);
}