SurfaceBackend class abstract mixin

Abstraction over accessing lower-level terminal-like output APIs.

Most applications will not interact with the SurfaceBackend type directly, and instead use the higher-level Surface API.

Implementers

Constructors

SurfaceBackend.fromStdout([Stdout? stdout])
Creates a new backend that writes to the given stdout.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size → (int, int)
Returns the terminal size in columns and rows.
no setter

Methods

clear() → void
Clears the terminal screen.
draw(int x, int y, Cell cell) → void
Draws a cell at the given x and y position.
drawBatch(Iterable<Cell> cells, {Offset start = Offset.zero, int? width}) → void
Optimally draws a batch of cells at the given start position.
endSynchronizedUpdate() → void
Ends a synchronized update.
flush() Future<void>
Flushes any buffered content to the terminal screen.
hideCursor() → void
Hides the terminal cursor.
moveCursorTo(int x, int y) → void
Moves the terminal cursor to the given position.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
showCursor() → void
Shows the terminal cursor.
startSynchronizedUpdate() → void
Starts a synchronized update.
toString() String
A string representation of this object.
inherited

Operators

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