setCell method

  1. @override
void setCell(
  1. int x,
  2. int y,
  3. String char,
  4. int fg,
  5. int bg,
  6. int mod,
)
override

Sets character, colors, and modifiers at coordinates.

Implementation

@override
void setCell(int x, int y, String char, int fg, int bg, int mod) {
  if (x >= 0 && x < bounds.width && y >= 0 && y < bounds.height) {
    parent.setCell(bounds.x + x, bounds.y + y, char, fg, bg, mod);
  }
}