AnsiColor class

Constructors

AnsiColor.bg(int bg)
AnsiColor.fg(int fg)
AnsiColor.none()

Properties

bg int
final
color bool
final
fg int
final
hashCode int
The hash code for this object. [...]
read-only, inherited
resetBackground String
Defaults the terminal's background color without altering the foreground.
read-only
resetForeground String
Defaults the terminal's foreground color without altering the background.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

call(String msg) String
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toBg() AnsiColor
toFg() AnsiColor
toString() String
A string representation of this object. [...]
override

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Methods

grey(double level) int

Constants

ansiDefault → const String
Reset all colors and options for current SGRs to terminal defaults.
'${ansiEsc}0m'
ansiEsc → const String
ANSI Control Sequence Introducer, signals the terminal for new settings.
'\x1B['