BufferLine class

Constructors

BufferLine(int _length, {bool isWrapped = false})

Properties

anchors List<CellAnchor>
no setter
attached bool
Whether this item is currently stored in a buffer.
no setterinherited
data Uint32List
no setter
hashCode int
The hash code for this object.
no setterinherited
index int
The index of this item in the buffer. Must only be accessed when attached is true.
no setterinherited
isWrapped bool
getter/setter pair
length int
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyFrom(BufferLine src, int srcCol, int dstCol, int len) → void
Copies len cells from src starting at srcCol to dstCol at this line.
createAnchor(int offset) CellAnchor
createCellData(int index) CellData
dispose() → void
eraseCell(int index, CursorStyle style) → void
eraseRange(int start, int end, CursorStyle style) → void
Erase cells whose index satisfies start <= index < end. Erased cells are filled with style.
getAttributes(int index) int
getBackground(int index) int
getCellData(int index, CellData cellData) → void
getCodePoint(int index) int
getContent(int index) int
getForeground(int index) int
getText([int? from, int? to]) String
getTrimmedLength([int? cols]) int
Returns the offset of the last cell that has content from the start of the line.
getWidth(int index) int
insertCells(int start, int count, [CursorStyle? style]) → void
Inserts count cells at start. New cells are initialized with style.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeCells(int start, int count, [CursorStyle? style]) → void
Remove count cells starting at start. Cells that are empty after the removal are filled with style.
resetCell(int index) → void
resize(int length) → void
setAttributes(int index, int value) → void
setBackground(int index, int value) → void
setCell(int index, int char, int witdh, CursorStyle style) → void
setCellData(int index, CellData cellData) → void
setCodePoint(int index, int char) → void
setContent(int index, int value) → void
setForeground(int index, int value) → void
toString() String
A string representation of this object.
override

Operators

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