copyWith method

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

Implementation

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