log method

String log({
  1. String debugName = '',
})

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;
}