clone method

  1. @override
Polyline clone()
override

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),
  );
}