copyWith method
Creates a copy with modified values.
Implementation
AreaAnnotationConfig copyWith({
Color? fillColor,
double? fillOpacity,
bool? showBorder,
Color? borderColor,
double? borderWidth,
AnnotationOrientation? orientation,
}) {
return AreaAnnotationConfig(
fillColor: fillColor ?? this.fillColor,
fillOpacity: fillOpacity ?? this.fillOpacity,
showBorder: showBorder ?? this.showBorder,
borderColor: borderColor ?? this.borderColor,
borderWidth: borderWidth ?? this.borderWidth,
orientation: orientation ?? this.orientation,
);
}