copyWith method

BetweenLineData copyWith({
  1. bool? visible,
  2. ChartRotation? rotation,
  3. Offset? origin,
  4. IChartLayout? layout,
  5. bool? crop,
  6. LineData? from,
  7. LineData? to,
  8. Color? color,
  9. Gradient? gradient,
  10. PathFillType? areaFillType,
})

Implementation

BetweenLineData copyWith({
  bool? visible,
  ChartRotation? rotation,
  Offset? origin,
  IChartLayout? layout,
  bool? crop,
  LineData? from,
  LineData? to,
  Color? color,
  Gradient? gradient,
  PathFillType? areaFillType,
}) {
  return BetweenLineData(
    visible: visible ?? this.visible,
    rotation: rotation ?? this.rotation,
    origin: origin ?? this.origin,
    layout: layout ?? this.layout,
    crop: crop ?? this.crop,
    from: from ?? this.from,
    to: to ?? this.to,
    areaColor: color ?? this.areaColor,
    areaGradient: gradient ?? this.areaGradient,
    areaFillType: areaFillType ?? this.areaFillType,
  );
}