An interface to interact and draw Frames on a terminal.
Constructors
- Surface.fromBackend(SurfaceBackend backend)
-
Creates a new terminal from a
backend
.factory - Surface.fromStdio([Stdout? stdout, Stdin? stdin])
-
Creates a new terminal that uses
stdout
andstdin
for I/O.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
Methods
-
close(
) → void - Disposes of the terminal.
-
draw(
void render(Frame)) → Future< void> -
Synchronizes terminal size, calls
render
, and flushes the frame. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited