isFlutterDebugBuild top-level constant
bool
const isFlutterDebugBuild
A debug build of a Flutter app (flutter run, flutter test): Flutter's
kDebugMode where the code runs under Flutter, false under dart run and
dart test. dart.library.ui is defined only by Flutter's compilers.
Implementation
const bool isFlutterDebugBuild =
isDebugBuild && bool.fromEnvironment('dart.library.ui');