copyWith method

AreaAnnotationConfig copyWith({
  1. Color? fillColor,
  2. double? fillOpacity,
  3. bool? showBorder,
  4. Color? borderColor,
  5. double? borderWidth,
  6. AnnotationOrientation? orientation,
})

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