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