copyWith method

AnnotationConfig copyWith({
  1. Color? color,
  2. double? strokeWidth,
  3. List<double>? dashPattern,
})

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