updateCopy method

Polygon updateCopy({
  1. List<LatLng>? points,
  2. bool? geodesic,
  3. Color? strokeColor,
  4. int? strokeWidth,
  5. Color? fillColor,
  6. bool? visible,
  7. int? zIndex,
  8. bool? clickable,
  9. VoidCallback? onClick,
  10. List<List<LatLng>>? holes,
  11. JointType? strokeJointType,
  12. 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,
  );
}