console static method
https://dart.dev/guides/language/language-tour#assert Only print and evaluate the expression function on debug mode, will omit in production/profile mode
Implementation
static void console(String Function() expr) {
assert(() {
if (enable) {
print(expr());
}
return true;
}());
}