setAttributes method
void
setAttributes(})
override
Sets the cell attributes at (x, y). Does nothing if coordinates are out of bounds.
Implementation
@override
void setAttributes(
int x,
int y, {
String? char,
int? fg,
int? bg,
int? modifiers,
}) {
if (x < 0 || x >= bounds.width || y < 0 || y >= bounds.height) return;
parent.setAttributes(
bounds.x + x,
bounds.y + y,
char: char,
fg: fg,
bg: bg,
modifiers: modifiers,
);
}