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