printWarning method Null safety

void printWarning(
  1. String text
)

Implementation

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