dispatch method
Runs the action through all provided Middleware
, then applies an action
to the state using the given Reducer
. Please note: Middleware
can
intercept actions, and can modify actions or stop them from passing
through to the reducer.
Implementation
@override
dynamic dispatch(dynamic action) {
if (action is DevToolsAction) {
return _devToolsStore!.dispatch(action);
} else {
return _devToolsStore!.dispatch(DevToolsAction.perform(action));
}
}