onRed static method

String onRed(
  1. String text, [
  2. AnsiColor fg = AnsiColor.WHITE
])

Shorthand for white text on bright red background.

Example:

print(AnsiOutput.onRed("🔥 Fatal"));

Implementation

static String onRed(String text, [AnsiColor fg = AnsiColor.WHITE]) =>
    onBackground(AnsiColor.BG_BRIGHT_RED, text, fg);