copyVerticalLineWith method

VerticalLine copyVerticalLineWith({
  1. double? x,
  2. VerticalLineLabel? label,
  3. Color? color,
  4. double? strokeWidth,
  5. List<int>? dashArray,
  6. Image? image,
  7. SizedPicture? sizedPicture,
  8. StrokeCap? strokeCap,
})

Copies current VerticalLine to a new VerticalLine and replaces provided values.

Implementation

VerticalLine copyVerticalLineWith({
  double? x,
  VerticalLineLabel? label,
  Color? color,
  double? strokeWidth,
  List<int>? dashArray,
  Image? image,
  SizedPicture? sizedPicture,
  StrokeCap? strokeCap,
}) {
  return VerticalLine(
    x: x ?? this.x,
    label: label ?? this.label,
    color: color ?? this.color,
    strokeWidth: strokeWidth ?? this.strokeWidth,
    dashArray: dashArray ?? this.dashArray,
    image: image ?? this.image,
    sizedPicture: sizedPicture ?? this.sizedPicture,
    strokeCap: strokeCap ?? this.strokeCap,
  );
}