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