debug static method

void debug(
  1. String s
)

Prints a debug message to the console if in debug mode.

This method will only print the message if the app is running in debug mode (i.e., during development). It uses the print function to output the string.

s The message to be printed.

Implementation

static void debug(String s) {
  if (kDebugMode) {
    print(s);
  }
}