warning static method

void warning(
  1. String message
)

Logs a warning message in yellow.

Use this for potentially problematic situations that don't prevent the program from continuing but should be noted.

Example:

Logger.warning('File already exists, overwriting');

Implementation

static void warning(String message) {
  print('${_yellow}WARNING: $message$_reset');
}