dispatch<St> static method

FutureOr<ActionStatus> dispatch<St>(
  1. BuildContext context,
  2. ReduxAction<St> action, {
  3. Object? debug,
})

Dispatch an action without a StoreConnector, and get a Future<void> which completes when the action is done.

Implementation

static FutureOr<ActionStatus> dispatch<St>(
  BuildContext context,
  ReduxAction<St> action, {
  Object? debug,
}) =>
    of<St>(context, debug).dispatch(action);