Line class final
A line is a fixed-width list of cells.
Upstream: third_party/ultraviolet/buffer.go (Line, Line.Set).
A single row of fixed-width Cells.
Constructors
- Line.filled(int width)
-
Creates a line of
widthcells, initialized to spaces.factory -
Line.fromCells(List<
Cell> cells) -
Creates a line from pre-built cells without applying
set()semantics.factory
Properties
Methods
-
at(
int x) → Cell? -
Returns the cell at
x, or null if out of bounds. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
render(
) → String - Renders the line to a styled string (including SGR and OSC 8 sequences), trimming trailing spaces.
-
set(
int x, Cell? cell) → void -
Sets the cell at
x, applying wide-cell overwrite rules. -
toString(
) → String -
String representation without trailing spaces.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited