SurfaceBackend.fromStdout constructor

SurfaceBackend.fromStdout(
  1. [Stdout? stdout]
)

Creates a new backend that writes to the given stdout.

This is the most common backend used for writing to the terminal.

Implementation

factory SurfaceBackend.fromStdout([io.Stdout? stdout]) {
  return _StdoutBackend(stdout ?? io.stdout);
}