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
Methods
-
clear(
) → void - Clears the terminal screen.
-
draw(
int x, int y, Cell cell) → void -
Draws a
cell
at the givenx
andy
position. -
drawBatch(
Iterable< Cell> cells, {Offset start = Offset.zero, int? width}) → void -
Optimally draws a batch of
cells
at the givenstart
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