isDebug property
bool
get
isDebug
Checks if the application is running in debug mode.
Returns true if in debug mode; otherwise, returns false.
This is determined using the Dart assert statement.
Implementation
static bool get isDebug {
bool inDebugMode = false;
assert(inDebugMode = true);
return inDebugMode;
}