log function

void log(
  1. Object? object, {
  2. String? tag,
})

Implementation

void log(Object? object, {String? tag}) {
  if (!inDebugMode) return;
  String text = tag != null ? '$tag $object' : '$object';
  // ignore: avoid_print
  print(text);
}