AnsiColor enum

Represents and Ansi colour.

Inheritance

Constructors

AnsiColor(String code)
const

Values

red → const AnsiColor
const AnsiColor('\u001B[31m')
green → const AnsiColor
const AnsiColor('\u001B[32m')
blue → const AnsiColor
const AnsiColor('\u001B[34m')
cyan → const AnsiColor
const AnsiColor('\u001B[36m')
yellow → const AnsiColor
const AnsiColor('\u001B[33m')
reset → const AnsiColor
const AnsiColor('\u001B[0m')

Properties

code String
The String code representing the colour.
final
hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
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<AnsiColor>
A constant List of the values in this enum, in order of their declaration.