appCheckEnabled property

bool get appCheckEnabled

Per-build enable gate for App Check. Default true — when an AppCheckConfig is passed to dreamicBootstrap, App Check activates. Set --dart-define=APP_CHECK_ENABLED=false to disable activation for a single build (e.g. local debugging) WITHOUT removing the config from main(). (App Check is still entirely off when no config is passed at all.)

Implementation

static bool get appCheckEnabled {
  _appCheckEnabled ??=
      const String.fromEnvironment('APP_CHECK_ENABLED', defaultValue: 'true') == 'true';
  return _appCheckEnabled!;
}