fill method

  1. @override
void fill(
  1. Cell cell
)
override

Fills the entire buffer with a copy of cell.

Implementation

@override
void fill(Cell cell) {
  for (var y = 0; y < bounds.height; y++) {
    for (var x = 0; x < bounds.width; x++) {
      final targetCell = parent.getCell(bounds.x + x, bounds.y + y);
      if (targetCell != null) {
        targetCell.char = cell.char;
        targetCell.style = cell.style;
      }
    }
  }
}