log static method
Implementation
static void log(String message) {
if (const bool.fromEnvironment('dart.vm.product')) {
//当应用编译为 release 版本时,dart.vm.product 通常被设置为 true
return;
}
print(message);
}
static void log(String message) {
if (const bool.fromEnvironment('dart.vm.product')) {
//当应用编译为 release 版本时,dart.vm.product 通常被设置为 true
return;
}
print(message);
}