kIsDebug top-level property

bool kIsDebug
final

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;
}();