Grid constructor
Grid()
Constructs a grid with matrix of cells whose value is all empty
Implementation
Grid() {
_matrix = List.generate(
9,
(_) => List<Cell>.filled(
9, new Cell(new Position(row: 0, column: 0, index: 0)),
growable: false),
growable: false);
_buildEmpty();
}