Ansi256Color class
Color (0-255) as defined by the ANSI Standard.
Constructors
- Ansi256Color.new(int color)
- Creates a new Ansi256Color with the given color value.
Properties
- code ↔ int
-
The color value.
latefinal
- hashCode → int
-
The hash code for this object.
no setteroverride
- profile → ProfileEnum
-
The profile of the color.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clearColorCache(
) → void -
Clears the color cache.
inherited
-
convert(
ProfileEnum toProfile) → Color -
Converts a color from the current profile to another profile.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sequence(
{bool background = false}) → String -
Returns the ANSI sequence for the given color.
If
background
is true, the sequence will be for the background color.override -
toAnsi16Color(
) → Ansi16Color - Converts an ANSI 256 color to an ANSI 16 color.
-
toString(
) → String -
A string representation of this object.
override
-
toTrueColor(
) → TrueColor - Convert Ansi256Color to TrueColor
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override