replaceWithClone method

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

Replaces the cell at x with a clone of cell.

Implementation

void replaceWithClone(int x, Cell cell) => replace(x, cell.clone());