enableStrictDebugMode method

void enableStrictDebugMode()

Enable strict debug mode — permission violations throw even in debug. Call this in main() during development to catch missing permissions early.

void main() async {
  PermissionChecker().enableStrictDebugMode(); // catch violations early
  configureAirState();
  ...
}

Implementation

void enableStrictDebugMode() {
  assert(kDebugMode, 'strictDebugMode has no effect in release builds.');
  _strictDebugMode = true;
  debugPrint(
    '\x1B[33m[Air Security] Strict debug mode ON — permission violations will throw.\x1B[0m',
  );
}