printIfDebug static method

void printIfDebug(
  1. String s
)

Prints a message only in debug mode.

Parameters:

  • s: The message to print

Only prints when kDebugMode is true.

Implementation

static void printIfDebug(String s) {
  if (kDebugMode) {
    printAlways(s);
  }
}