printLog function

void printLog(
  1. String message,
  2. bool debug, {
  3. LogColor color = LogColor.reset,
})

Web stub for printing logs

Implementation

void printLog(String message, bool debug, {LogColor color = LogColor.reset}) {
  if (!debug) return;
  // On web, just print
  print(message);
}