Line class final

A line is a fixed-width list of cells.

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.
dispose() → void
Releases all cells owned by this line.
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.
renderHash() → int
Returns a cached hash of the line's rendered content.
replace(int x, Cell cell) → void
Replaces the cell at x with cell without applying wide-cell rules.
replaceWithClone(int x, Cell cell) → void
Replaces the cell at x with a copy of cell.
resetToEmpty(int x) → void
Resets the cell at x to a plain space without copying a source cell.
set(int x, Cell? cell) → void
Sets the cell at x, applying wide-cell overwrite rules.
setOwned(int x, Cell? cell) → void
Sets the cell at x, taking ownership of cell if provided.
toString() → String
String representation without trailing spaces.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited