printWarning function

void printWarning(
  1. String text
)

Prints text to the console as a warning message with yellow color.

Implementation

void printWarning(String text) {
  print('\x1B[33m$text\x1B[0m');
}