getGrid property

  1. @override
List<List<int>> getGrid
override

The @override List<List<int>> get getGrid => grid; is a getter method that overrides the getGrid getter method from the BasicShape interface. It returns the grid property, which is a 2D list representing the cross. This allows other classes that implement the BasicShape interface to access the grid property of the Cross class.

Implementation

@override
List<List<int>> get getGrid => grid;