dispatchAll<St> static method
void
dispatchAll<St>(
- BuildContext context,
- List<
ReduxAction< actions, {St> > - Object? debug,
- bool notify = true,
Dispatch a list of actions with ReduxAction.dispatchAll
without needing a StoreConnector
. Example:
StoreProvider.dispatchAll(context, [Action1(), Action2()]);
However, it's recommended that you use the built-in BuildContext
extension instead:
context.dispatchAll([Action1(), Action2()])`.
Implementation
static void dispatchAll<St>(
BuildContext context,
List<ReduxAction<St>> actions, {
Object? debug,
bool notify = true,
}) =>
_getStoreNoDependency_Untyped(context, debug: debug).dispatchAll(actions, notify: notify);