setAttributes method
void
setAttributes(
- int x,
- int y, {
- String? char,
- int? fg,
- int? bg,
- int? modifiers,
- int? underlineColor,
- String? uri,
- bool? blend,
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,
int? underlineColor,
String? uri,
bool? blend,
}) {
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,
underlineColor: underlineColor,
uri: uri,
blend: blend,
);
}