log static method

void log(
  1. String message
)

Log a message with debugPrint and a DateTime stamp to the console.

Never logs in release mode builds.

Implementation

static void log(String message) {
  if (!kReleaseMode) {
    debugPrint("${DateTime.now().toIso8601String()}: $message");
  }
}