DirectTextAccess class

Read-only direct views of TextBuffer native cache arrays.

The returned typed lists reference native-owned storage and are intended for immediate inspection only. Mutating them is unsupported.

Constructors

DirectTextAccess({required Uint32List chars, required Float32List foregrounds, required Float32List backgrounds, required Uint16List attributes, required int length})
Creates a DirectTextAccess.
const

Properties

attributes → Uint16List
Text attributes for each cell.
final
backgrounds → Float32List
RGBA background channels, four floats per cell.
final
chars → Uint32List
Unicode code points for each text-buffer cell.
final
foregrounds → Float32List
RGBA foreground channels, four floats per cell.
final
hashCode → int
The hash code for this object.
no setterinherited
length → int
Number of cells exposed by these views.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

getAttributes(int index) → int
Returns the text attributes bitmask at index.
getChar(int index) → String
Returns the character at index as a single-character string.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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