printMessage function

void printMessage(
  1. String printMessage
)

print message function to avoid prints in release mode of app

Implementation

void printMessage(String printMessage) {
  if (kDebugMode) {
    print(printMessage);
  }
}