setCellOwned method

void setCellOwned(
  1. int x,
  2. int y,
  3. Cell? cell
)

Sets the cell at (x, y) and may take ownership of cell.

Implementation

void setCellOwned(int x, int y, Cell? cell) =>
    _setCell(x, y, cell, takeOwnership: true);