updateCopy method
Polygon
updateCopy(
{ - List<LatLng>? points,
- bool? geodesic,
- Color? strokeColor,
- int? strokeWidth,
- Color? fillColor,
- bool? visible,
- int? zIndex,
- bool? clickable,
- VoidCallback? onClick,
- List<List<LatLng>>? holes,
- JointType? strokeJointType,
- List<PatternItem>? strokePattern,
})
Implementation
Polygon updateCopy({
List<LatLng>? points,
bool? geodesic,
Color? strokeColor,
int? strokeWidth,
Color? fillColor,
bool? visible,
int? zIndex,
bool? clickable,
VoidCallback? onClick,
List<List<LatLng>>? holes,
JointType? strokeJointType,
List<PatternItem>? strokePattern,
}) {
return Polygon(
polygonId: polygonId,
points: points ?? this.points,
geodesic: geodesic ?? this.geodesic,
strokeColor: strokeColor ?? this.strokeColor,
strokeWidth: strokeWidth ?? this.strokeWidth,
fillColor: fillColor ?? this.fillColor,
visible: visible ?? this.visible,
clickable: clickable ?? this.clickable,
onClick: onClick ?? this.onClick,
zIndex: zIndex ?? this.zIndex,
holes: holes ?? this.holes,
strokeJointType: strokeJointType ?? this.strokeJointType,
strokePattern: strokePattern ?? this.strokePattern,
);
}