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 super.data,
  super.legend,
  PdfColor? pointColor,
  super.pointSize,
  PdfColor color = PdfColors.blue,
  this.lineWidth = 2,
  this.drawLine = true,
  this.lineColor,
  super.drawPoints,
  super.shape,
  super.buildValue,
  super.valuePosition,
  this.drawSurface = false,
  this.surfaceOpacity = .2,
  this.surfaceColor,
  this.isCurved = false,
  this.smoothness = 0.35,
})  : assert(drawLine || drawPoints || drawSurface),
      super(
        color: pointColor ?? color,
      );