printToConsole function

void printToConsole(
  1. Object? message
)

prints a single message to console only in debug mode

Implementation

void printToConsole(Object? message){
  if(kDebugMode){
    print(message);
  }
}