It's a method that returns a copy of the current shape.
@override Square copy() => Square.fromList( grid.map((List<int> e) => <int>[...e]).toList(), );