ConsoleColor enum
Values
- black → const ConsoleColor
-
The named ANSI colors.
const ConsoleColor('\x1b[30m', '\x1b[40m') - red → const ConsoleColor
-
const ConsoleColor('\x1b[31m', '\x1b[41m') - green → const ConsoleColor
-
const ConsoleColor('\x1b[32m', '\x1b[42m') - yellow → const ConsoleColor
-
const ConsoleColor('\x1b[33m', '\x1b[43m') - blue → const ConsoleColor
-
const ConsoleColor('\x1b[34m', '\x1b[44m') - magenta → const ConsoleColor
-
const ConsoleColor('\x1b[35m', '\x1b[45m') - cyan → const ConsoleColor
-
const ConsoleColor('\x1b[36m', '\x1b[46m') - white → const ConsoleColor
-
const ConsoleColor('\x1b[37m', '\x1b[47m') - brightBlack → const ConsoleColor
-
const ConsoleColor('\x1b[90m', '\x1b[100m') - brightRed → const ConsoleColor
-
const ConsoleColor('\x1b[91m', '\x1b[101m') - brightGreen → const ConsoleColor
-
const ConsoleColor('\x1b[92m', '\x1b[102m') - brightYellow → const ConsoleColor
-
const ConsoleColor('\x1b[93m', '\x1b[103') - brightBlue → const ConsoleColor
-
const ConsoleColor('\x1b[94m', '\x1b[104m') - brightMagenta → const ConsoleColor
-
const ConsoleColor('\x1b[95m', '\x1b[105m') - brightCyan → const ConsoleColor
-
const ConsoleColor('\x1b[96m', '\x1b[106m') - brightWhite → const ConsoleColor
-
const ConsoleColor('\x1b[97m', '\x1b[107m')
Properties
- ansiSetBackgroundColorSequence → String
-
final
- ansiSetForegroundColorSequence → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
Constants
-
values
→ const List<
ConsoleColor> - A constant List of the values in this enum, in order of their declaration.