printWarning function

void printWarning(
  1. Object? obj
)

Print in yellow colour

Used for warnings that do not block the program from continuing

Implementation

void printWarning(Object? obj) {
  print('\x1B[33m' + obj.toString() + '\x1B[0m');
}