clone method

  1. @override
Polygon clone()
override

Creates a new Polygon object whose values are the same as this instance.

Implementation

@override
Polygon clone() {
  return copyWith(pointsParam: List<LatLng>.of(points));
}