A backend implementation used for integration testing.
- Implemented types
Constructors
- TestSurfaceBackend(int width, int height)
-
factory
Properties
- buffer → Buffer
-
The buffer of cells that represents the terminal screen.
no setter
- cursorPosition → Offset
-
Position of the terminal cursor, starting at
(0, 0)
.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- isCursorVisible → bool
-
Whether the terminal cursor is visible.
no setter
- 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 setterinherited
Methods
-
clear(
) → void -
Clears the terminal screen.
inherited
-
draw(
int x, int y, Cell cell) → void -
Draws a
cell
at the givenx
andy
position.inherited -
drawBatch(
Iterable< Cell> cells, {Offset start = Offset.zero, int? width}) → void -
Optimally draws a batch of
cells
at the givenstart
position.inherited -
endSynchronizedUpdate(
) → void -
Ends a synchronized update.
inherited
-
flush(
) → Future< void> -
Flushes any buffered content to the terminal screen.
inherited
-
hideCursor(
) → void -
Hides the terminal cursor.
inherited
-
moveCursorTo(
int x, int y) → void -
Moves the terminal cursor to the given position.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resize(
int width, int height) → void -
Resizes the terminal screen to the given
width
andheight
. -
showCursor(
) → void -
Shows the terminal cursor.
inherited
-
startSynchronizedUpdate(
) → void -
Starts a synchronized update.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited