copyWith method

LabelAnnotationConfig copyWith({
  1. Color? backgroundColor,
  2. double? backgroundOpacity,
  3. EdgeInsets? padding,
  4. double? borderRadius,
  5. bool? showBorder,
  6. Color? borderColor,
  7. double? borderWidth,
  8. double? rotation,
})

Creates a copy with modified values.

Implementation

LabelAnnotationConfig copyWith({
  Color? backgroundColor,
  double? backgroundOpacity,
  EdgeInsets? padding,
  double? borderRadius,
  bool? showBorder,
  Color? borderColor,
  double? borderWidth,
  double? rotation,
}) {
  return LabelAnnotationConfig(
    backgroundColor: backgroundColor ?? this.backgroundColor,
    backgroundOpacity: backgroundOpacity ?? this.backgroundOpacity,
    padding: padding ?? this.padding,
    borderRadius: borderRadius ?? this.borderRadius,
    showBorder: showBorder ?? this.showBorder,
    borderColor: borderColor ?? this.borderColor,
    borderWidth: borderWidth ?? this.borderWidth,
    rotation: rotation ?? this.rotation,
  );
}