AnsiColor.none constructor
const
AnsiColor.none()
A utility class to apply ANSI terminal color codes to strings.
This is useful for enhancing log output or command-line interfaces with colored messages for better readability and severity-level distinction.
It supports both foreground and background color settings using ANSI 256-color codes.
Example usage:
final color = AnsiColor.fg(34); // Bright blue text
print(color('This text is blue'));
Creates an AnsiColor instance with no foreground or background color.
This is effectively a no-op color.
Implementation
const AnsiColor.none()
: fg = null,
bg = null,
color = false;