copy method

Polyline copy({
  1. Color? strokeColor,
  2. num? strokeWidth,
  3. double? strokeOpacity,
  4. StrokeCap? strokeCap,
  5. StrokeJoin? strokeJoin,
  6. PathFillType? pathFillType,
  7. List<Color>? gradientStrokeColors,
  8. List<double>? gradientStrokeStops,
  9. bool? isDotted,
  10. dynamic data,
})

Implementation

Polyline copy({
  Color? strokeColor,
  num? strokeWidth,
  double? strokeOpacity,
  StrokeCap? strokeCap,
  StrokeJoin? strokeJoin,
  PathFillType? pathFillType,
  List<Color>? gradientStrokeColors,
  List<double>? gradientStrokeStops,
  bool? isDotted,
  dynamic data,
}) {
  return Polyline(
    latlngs,
    strokeColor: strokeColor ?? this.strokeColor,
    strokeWidth: strokeWidth as double? ?? this.strokeWidth,
    strokeOpacity: strokeOpacity ?? this.strokeOpacity,
    strokeCap: strokeCap ?? this.strokeCap,
    strokeJoin: strokeJoin ?? this.strokeJoin,
    pathFillType: pathFillType ?? this.pathFillType,
    gradientStrokeColors: gradientStrokeColors ?? this.gradientStrokeColors,
    gradientStrokeStops: gradientStrokeStops ?? this.gradientStrokeStops,
    isDotted: isDotted ?? this.isDotted,
    data: data ?? this.data,
  );
}