log method
Print in console only in kDebugMode and return the same string
Implementation
String log({String debugName = ''}) {
if (kDebugMode) {
dev.log(
this,
name: debugName,
// time: DateTime.now(),
);
}
return this;
}