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