AnsiColor class
Helper class to assist in printing text to the console with a color.
Use one of the color functions instead of this class.
See:
Properties
Methods
-
apply(
String text, {AnsiColor background = none}) → String - writes the text to the terminal.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
Constants
- black → const AnsiColor
- Colors black
- blue → const AnsiColor
- blue
- codeBlack → const int
- code for black
- codeBlue → const int
- code for blue
- codeCyan → const int
- code for cyan
- codeGreen → const int
- code for green
- codeGrey → const int
- code for grey
- codeMagenta → const int
- code for magenta
- codeOrange → const int
- code for orange
- codeRed → const int
- code for red
- codeWhite → const int
- code for white
- codeYellow → const int
- code for yellow
- cyan → const AnsiColor
- cyan
- green → const AnsiColor
- green
- magenta → const AnsiColor
- magenta
- none → const AnsiColor
- passing this as the background color will cause the background code to be suppressed resulting in the default background color.
- orange → const AnsiColor
- orange
- red → const AnsiColor
- red
- white → const AnsiColor
- white
- yellow → const AnsiColor
- yellow