runWithoutMiddleware static method

void runWithoutMiddleware(
  1. void action()
)

Bypasses all middlewares for the duration of action.

Implementation

static void runWithoutMiddleware(void Function() action) {
  final prev = _bypassMiddleware;
  _bypassMiddleware = true;
  try {
    action();
  } finally {
    _bypassMiddleware = prev;
  }
}