LineDataSet<T extends PointChartValue> constructor

LineDataSet<T extends PointChartValue>({
  1. required List<T> data,
  2. String? legend,
  3. PdfColor? pointColor,
  4. double pointSize = 3,
  5. PdfColor color = PdfColors.blue,
  6. double lineWidth = 2,
  7. bool drawLine = true,
  8. PdfColor? lineColor,
  9. bool drawPoints = true,
  10. BuildCallback? shape,
  11. Widget buildValue(
    1. Context context,
    2. T value
    )?,
  12. ValuePosition valuePosition = ValuePosition.auto,
  13. bool drawSurface = false,
  14. double surfaceOpacity = .2,
  15. PdfColor? surfaceColor,
  16. bool isCurved = false,
  17. 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,
      );