copyWith method
Implementation
BoardState copyWith({List<List<Cell>>? grid}) =>
BoardState(rows: rows, cols: cols, grid: grid ?? _deepCopy());
BoardState copyWith({List<List<Cell>>? grid}) =>
BoardState(rows: rows, cols: cols, grid: grid ?? _deepCopy());