copyWith method

BoardState copyWith({
  1. List<List<Cell>>? grid,
})

Implementation

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