AsciiColour class
One entry of the 256-colour table, which the terminal can paint into any of three places.
A colour is not a printable code by itself — pick fg, bg or underline and you get the string to print.
Constructors
- AsciiColour(int index)
-
Wraps a table position. The 256 already named are on colours; reach for
this only to compute an index.
const
Properties
- bg → String
-
Paints the background behind the text. Cleared by RESET_BG or by
reset.
no setter
- fg → String
-
Paints the text this colour. Cleared by RESET_FG or by reset.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
Position in the 256-colour table,
0-255.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- underline → String
-
Paints the underline this colour, leaving the text its own colour.
no setter
Methods
-
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