copy method

  1. @override
Cross copy()
override

Copy the cross by mapping each row to a new list containing the same elements.

Implementation

@override
Cross copy() => Cross.fromList(
      grid.map((List<int> e) => <int>[...e]).toList(),
    );