updateCopy method

Polyline updateCopy({
  1. List<LatLng>? points,
  2. bool? geodesic,
  3. int? width,
  4. Color? color,
  5. Cap? startCap,
  6. Cap? endCap,
  7. JointType? jointType,
  8. List<PatternItem>? patterns,
  9. bool? visible,
  10. int? zIndex,
  11. bool? clickable,
  12. VoidCallback? onClick,
})

Implementation

Polyline updateCopy({
  List<LatLng>? points,
  bool? geodesic,
  int? width,
  Color? color,
  Cap? startCap,
  Cap? endCap,
  JointType? jointType,
  List<PatternItem>? patterns,
  bool? visible,
  int? zIndex,
  bool? clickable,
  VoidCallback? onClick,
}) {
  return Polyline(
    polylineId: polylineId,
    points: points ?? this.points,
    geodesic: geodesic ?? this.geodesic,
    width: width ?? this.width,
    color: color ?? this.color,
    startCap: startCap ?? this.startCap,
    endCap: endCap ?? this.endCap,
    jointType: jointType ?? this.jointType,
    patterns: patterns ?? this.patterns,
    visible: visible ?? this.visible,
    zIndex: zIndex ?? this.zIndex,
    clickable: clickable ?? this.clickable,
    onClick: onClick ?? this.onClick,
  );
}