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