LineDataSet<T extends PointChartValue> constructor
LineDataSet<T extends PointChartValue> ({
- required List<
T> data, - String? legend,
- PdfColor? pointColor,
- double pointSize = 3,
- PdfColor color = PdfColors.blue,
- double lineWidth = 2,
- bool drawLine = true,
- PdfColor? lineColor,
- bool drawPoints = true,
- BuildCallback? shape,
- Widget buildValue(
- Context context,
- T value
- ValuePosition valuePosition = ValuePosition.auto,
- bool drawSurface = false,
- double surfaceOpacity = .2,
- PdfColor? surfaceColor,
- bool isCurved = false,
- double smoothness = 0.35,
Implementation
LineDataSet({
required List<T> data,
String? legend,
PdfColor? pointColor,
double pointSize = 3,
PdfColor color = PdfColors.blue,
this.lineWidth = 2,
this.drawLine = true,
this.lineColor,
bool drawPoints = true,
BuildCallback? shape,
Widget Function(Context context, T value)? buildValue,
ValuePosition valuePosition = ValuePosition.auto,
this.drawSurface = false,
this.surfaceOpacity = .2,
this.surfaceColor,
this.isCurved = false,
this.smoothness = 0.35,
}) : assert(drawLine || drawPoints || drawSurface),
super(
legend: legend,
color: pointColor ?? color,
data: data,
drawPoints: drawPoints,
pointSize: pointSize,
buildValue: buildValue,
shape: shape,
valuePosition: valuePosition,
);