copyWith method
Creates a copy with modified values.
Implementation
AnnotationConfig copyWith({
Color? color,
double? strokeWidth,
List<double>? dashPattern,
}) {
return AnnotationConfig(
color: color ?? this.color,
strokeWidth: strokeWidth ?? this.strokeWidth,
dashPattern: dashPattern ?? this.dashPattern,
);
}