Console class Null safety

The root of the console API

Constructors

Console()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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

Static Properties

adapter ConsoleAdapter
read / write
columns int
read-only
initialized bool
read / write
onResize Stream
read-only
rows int
read-only

Static Methods

altBuffer() → void
centerCursor({bool row = true}) → void
conceal() → void
eraseDisplay([int type = 0]) → void
Erases the Display
eraseLine([int type = 0]) → void
Erases the Line
getBackgroundColor() Color?
getCursorPosition() CursorPosition
getTextColor() Color?
hideCursor() → void
init() → void
Initializes the Console
moveCursor({int? row, int? column}) → void
moveCursorBack([int times = 1]) → void
Moves the Cursor Back the specified amount of times.
moveCursorDown([int times = 1]) → void
Moves the Cursor Down the specified amount of times.
moveCursorForward([int times = 1]) → void
Moves the Cursor Forward the specified amount of times.
moveCursorUp([int times = 1]) → void
Moves the Cursor Up the specified amount of times.
moveToColumn(int number) → void
Moves the the column specified in number.
nextLine([int times = 1]) → void
normBuffer() → void
overwriteLine(String line) → void
Overwrites the current line with line.
previousLine([int times = 1]) → void
readLine() String?
resetAll() → void
resetBackgroundColor() → void
resetTextColor() → void
restoreCursor() → void
reveal() → void
saveCursor() → void
setBackgroundColor(int id, {bool xterm = false, bool bright = false}) → void
setBold(bool bold) → void
setCrossedOut(bool crossedOut) → void
setEncircled(bool encircled) → void
setFramed(bool framed) → void
setInverted(bool flipped) → void
setItalic(bool italic) → void
setOverlined(bool overlined) → void
setTextColor(int id, {bool xterm = false, bool bright = false}) → void
Sets the Current Text Color.
setUnderline(bool underline) → void
sgr(int id, [List<int>? params]) → void
showCursor() → void
write(String? content) → void
writeANSI(String after) → void

Constants

ANSI_CODE → const String
'\x1b'
ANSI_ESCAPE → const String
ANSI Escape Code
'\x1b['