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 width cells, initialized to spaces.
factory
Line.fromCells(List<Cell> cells)
Creates a line from pre-built cells without applying set() semantics.
factory

Properties

cells List<Cell>
no setter
hashCode int
The hash code for this object.
no setterinherited
length int
The number of cells in this line.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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