kIsDebug top-level property
True if the application is running in debug mode. Evaluated exactly once at startup.
Implementation
final bool kIsDebug = () {
var isDebug = false;
assert(() {
isDebug = true;
return true;
}());
return isDebug;
}();