dispatchAll property
List<ReduxAction<St> > Function(List<ReduxAction<St> > actions, {bool notify})
dispatchAll
Dispatches all given actions
in parallel, applying their reducer, and possibly changing
the store state. It returns the same list of actions
, so that you can instantiate them
inline, but still get a list of them.
var actions = dispatchAll([BuyAction('IBM'), SellAction('TSLA')]);
If you pass the notify
parameter as false
, widgets will not necessarily rebuild because
of these actions, even if it changes the state.
See also:
- dispatch which dispatches both sync and async actions.
- dispatchAndWait which dispatches both sync and async actions, and returns a Future.
- dispatchAndWaitAll which dispatches all given actions, and returns a Future.
- dispatchSync which dispatches sync actions, and throws if the action is async.
Implementation
List<ReduxAction<St>> Function(List<ReduxAction<St>> actions, {bool notify}) get dispatchAll =>
_store.dispatchAll;