setAttributes method
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;
}