clone method
Creates a new Polyline object whose values are the same as this instance.
Implementation
@override
Polyline clone() {
return copyWith(
patternsParam: List<PatternItem>.of(patterns),
pointsParam: List<LatLng>.of(points),
);
}