updateSquares method
Implementation
BoardState updateSquares(Map<int, String> updates) {
List<String> newBoard = [...board];
for (final u in updates.entries) {
newBoard[u.key] = u.value;
}
return copyWith(board: newBoard);
}
BoardState updateSquares(Map<int, String> updates) {
List<String> newBoard = [...board];
for (final u in updates.entries) {
newBoard[u.key] = u.value;
}
return copyWith(board: newBoard);
}