red function Null safety

String red(
  1. String text,
  2. {AnsiColor bgcolor = AnsiColor.none}
)

Returns a string wrapped with the selected ansi fg color codes.

Implementation

String red(String text, {AnsiColor bgcolor = AnsiColor.none}) =>
    AnsiColor._apply(AnsiColor.red, text, bgcolor: bgcolor);