updateCopy method

Circle updateCopy({
  1. LatLng? center,
  2. double? radius,
  3. Color? strokeColor,
  4. int? strokeWidth,
  5. Color? fillColor,
  6. bool? visible,
  7. int? zIndex,
  8. bool? clickable,
  9. VoidCallback? onClick,
  10. List<PatternItem>? strokePattern,
})

Implementation

Circle updateCopy({
  LatLng? center,
  double? radius,
  Color? strokeColor,
  int? strokeWidth,
  Color? fillColor,
  bool? visible,
  int? zIndex,
  bool? clickable,
  VoidCallback? onClick,
  List<PatternItem>? strokePattern,
}) {
  return Circle(
    circleId: circleId,
    center: center ?? this.center,
    radius: radius ?? this.radius,
    strokeColor: strokeColor ?? this.strokeColor,
    strokeWidth: strokeWidth ?? this.strokeWidth,
    fillColor: fillColor ?? this.fillColor,
    visible: visible ?? this.visible,
    zIndex: zIndex ?? this.zIndex,
    clickable: clickable ?? this.clickable,
    onClick: onClick ?? this.onClick,
    strokePattern: strokePattern ?? this.strokePattern,
  );
}