enabled property
bool
get
enabled
Returns whether the the execution times are enabled. By default, this will return true when running in debug mode and false when running in production mode.
Implementation
static bool get enabled {
var enabled = _enabled;
if (enabled == null) {
assert(() {
enabled = true;
return true;
}());
}
if (enabled != true) {
clear();
}
return enabled == true;
}
set
enabled
(bool enabled)
Sets whether or not the execution timers are enabled. The value set here will override the default.
Implementation
static set enabled(bool enabled) => _enabled = enabled;