BufferLine class
- Available extensions
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
- hasCombiningCharacters → bool
-
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
attachedis 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
-
addCombiningCharacter(
int index, int codePoint) → void -
clearWideCellAt(
int index, CursorStyle style) → void -
compact(
) → void -
Available on BufferLine, provided by the BufferLineCompaction extension
-
copyFrom(
BufferLine src, int srcCol, int dstCol, int len) → void -
Copies
lencells fromsrcstarting atsrcColtodstColat 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, {bool respectProtected = false}) → void -
Erase cells whose index satisfies
start<= index <end. Erased cells are filled withstyle. -
getAttributes(
int index) → int -
getBackground(
int index) → int -
getCellData(
int index, CellData cellData, {bool includeUnderlineColor = true}) → void -
getCodePoint(
int index) → int -
getCombiningCharacters(
int index) → String? -
getContent(
int index) → int -
getForeground(
int index) → int -
getHyperlinkId(
int index) → int -
getSemanticContent(
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.
-
getUnderlineColor(
int index) → int -
getWidth(
int index) → int -
insertCells(
int start, int count, [CursorStyle? style, int? end]) → void -
Inserts
countcells atstart. New cells are initialized withstyle. -
isProtected(
int index) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeCells(
int start, int count, [CursorStyle? style, int? end]) → void -
Remove
countcells starting atstart. Cells that are empty after the removal are filled withstyle. -
resetCell(
int index) → void -
resize(
int length, {bool clearNewCells = false}) → void -
setAsciiCells(
int start, String text, int textStart, int count, CursorStyle style) → 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 -
setSemanticContent(
int index, int value) → void -
setWidth(
int index, int width) → void -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited