dispatch method
Dispatch an action or query.
Implementation
@override
void dispatch(dynamic action) {
final wireframe = activeWireframe;
if(wireframe != null) {
if(action is AFNavigateAction) {
final isNavigate = (action is AFNavigatePopAction ||
action is AFNavigatePushAction ||
action is AFNavigatePopNAction ||
action is AFNavigatePopToAction ||
action is AFNavigateReplaceAction ||
action is AFNavigateReplaceAllAction);
// the default test dispatcher won't do this, so we need to go direct to the real dispatcher.
if(isNavigate && wireframe.enableUINavigation) {
AFibF.g.internalOnlyActiveDispatcher.dispatch(action);
return;
}
if(isNavigate) {
return;
}
}
if(action is AFUpdateAppStateAction || action is AFAsyncQuery) {
return;
}
}
standard.dispatcher.dispatch(action);
}