Ansi class

A small utility class to make it easier to work with common ANSI escape sequences.

Constructors

Ansi(bool useAnsi)

Properties

backspace String
read-only
blue String
read-only
bold String
read-only
bullet String
read-only
cyan String
read-only
gray String
read-only
green String
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
magenta String
read-only
noColor String
read-only
none String
read-only
red String
read-only
reversed String
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
useAnsi bool
final
yellow String
read-only

Methods

emphasized(String message) String
Display message in an emphasized format.
error(String message) String
Display message in an error (red) format.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
subtle(String message) String
Display message in an subtle (gray) format.
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Properties

terminalSupportsAnsi bool
Return whether the current stdout terminal supports ANSI escape sequences.
read-only