replace method

void replace(
  1. int x,
  2. Cell cell
)

Replaces the cell at x with cell without applying wide-cell rules.

Implementation

void replace(int x, Cell cell) {
  if (x < 0 || x >= _cells.length) return;
  _cells[x].dispose();
  _cells[x] = cell;
}