// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 export 'globals.dart.dart' if (dart.library.ui) 'globals.flutter.dart'; /// Whether running in debug mode. const bool zDebugMode = !zProfileMode && !zReleaseMode; /// Whether asserts are enabled. /// /// This differs from [zDebugMode] in that it's not enabled in `dart2js` unless /// explicitly done so with the `--enable-asserts` flag but otherwise requires /// that no extra flags be passed to build commands (which may be helpful in /// pure Dart applications). final bool zAssertsEnabled = () { var assertsEnabled = false; // ignore: prefer_asserts_with_message assert( () { assertsEnabled = true; return true; }(), ); return assertsEnabled; }(); /// Whether running in profile mode. const bool zProfileMode = bool.fromEnvironment('dart.vm.profile'); /// Whether running in release mode. const bool zReleaseMode = bool.fromEnvironment('dart.vm.product'); /// Whether running on the Web. /// /// Since JS does not support integers, an int and a double will be identical /// when representing the same value. However, this will not be true for all /// other compilation targets. const bool zIsWeb = identical(0, 0.0);