setCell method
void
setCell(
- int x,
- int y,
- String char,
- int fg,
- int bg,
- int mod, {
- bool? blend,
- int underlineColor = 0,
- String? uri,
override
Sets character, colors, and modifiers at coordinates.
When blend is true (or omitted when defaultBlend is true), fg
and bg are alpha-blended over existing cell colors. When false, they
replace existing colors directly so 0 resets to the terminal default.
Implementation
@override
void setCell(
int x,
int y,
String char,
int fg,
int bg,
int mod, {
bool? blend,
int underlineColor = 0,
String? uri,
}) {
if (x >= 0 && x < bounds.width && y >= 0 && y < bounds.height) {
parent.setCell(
bounds.x + x,
bounds.y + y,
char,
fg,
bg,
mod,
blend: blend,
underlineColor: underlineColor,
uri: uri,
);
}
}