copyWith method

LineData copyWith({
  1. bool? visible,
  2. ChartRotation? rotation,
  3. Offset? origin,
  4. IChartLayout? layout,
  5. bool? crop,
  6. List<DataPoint>? points,
  7. ThicknessData? thickness,
  8. Gradient? areaGradient,
  9. Color? areaColor,
  10. PathFillType? areaFillType,
  11. ILineTypeData? lineType,
  12. IDataPointStyle? pointStyle,
})

Implementation

LineData copyWith({
  bool? visible,
  ChartRotation? rotation,
  Offset? origin,
  IChartLayout? layout,
  bool? crop,
  List<DataPoint>? points,
  ThicknessData? thickness,
  Gradient? areaGradient,
  Color? areaColor,
  PathFillType? areaFillType,
  ILineTypeData? lineType,
  IDataPointStyle? pointStyle,
}) {
  return LineData(
    visible: visible ?? this.visible,
    rotation: rotation ?? this.rotation,
    origin: origin ?? this.origin,
    layout: layout ?? this.layout,
    crop: crop ?? this.crop,
    points: points ?? this.points,
    thickness: thickness ?? this.thickness,
    areaGradient: areaGradient ?? this.areaGradient,
    areaColor: areaColor ?? this.areaColor,
    areaFillType: areaFillType ?? this.areaFillType,
    lineType: lineType ?? this.lineType,
    pointStyle: pointStyle ?? this.pointStyle,
  );
}