dispatchAll<St> static method

void dispatchAll<St>(
  1. BuildContext context,
  2. List<ReduxAction<St>> actions, {
  3. Object? debug,
  4. 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);