warning static method

String warning(
  1. String message, {
  2. bool error = true,
})

Logs a warning message in yellow.

Implementation

static String warning(String message, {bool error = true}) {
  String output = '{@yellow}[WARNING] $message{@end}';
  out(output, error: error);

  // Return for testing.
  return output;
}