setAttributes method

void setAttributes(
  1. int x,
  2. int y,
  3. int attr
)

Set text attributes at the specified coordinates.

attr must fit an unsigned 32-bit value; violations throw RangeError before the native-memory store instead of silently truncating.

Implementation

void setAttributes(int x, int y, int attr) {
  final index = _getIndex(x, y);
  _checkUnsignedAbi(attr, 0xFFFFFFFF, 'attr');
  _attributes[index] = attr;
}