grey function

String grey(
  1. String text, {
  2. double level = 0.5,
  3. AnsiColor background = AnsiColor.none,
  4. bool bold = true,
})

Wraps the passed text with the ANSI escape sequence for the color red. Use this to control the color of text when printing to the console.

print(grey('a dark message'));

The text to wrap. By default the color is bold however you can turn off bold by setting the bold argment to false:

print(grey('a dark message', bold: false));

background is the background color to use when printing the text. Defaults to White. xt. Defaults to none.

Implementation

String grey(
  String text, {
  double level = 0.5,
  AnsiColor background = AnsiColor.none,
  bool bold = true,
}) =>
    AnsiColor._apply(
      AnsiColor._grey(level: level, bold: bold),
      text,
      background: background,
    );