onYellow static method

String onYellow(
  1. String text, [
  2. AnsiColor fg = AnsiColor.BLACK
])

Shorthand for black text on bright yellow background.

Example:

print(AnsiOutput.onYellow("⚠ Warning"));

Implementation

static String onYellow(String text, [AnsiColor fg = AnsiColor.BLACK]) =>
    onBackground(AnsiColor.BG_BRIGHT_YELLOW, text, fg);