BarDataSet<T extends PointChartValue> constructor

BarDataSet<T extends PointChartValue>({
  1. required List<T> data,
  2. String? legend,
  3. PdfColor? borderColor,
  4. double borderWidth = 1.5,
  5. PdfColor color = PdfColors.blue,
  6. bool? drawBorder,
  7. bool drawSurface = true,
  8. double surfaceOpacity = 1,
  9. double width = 10,
  10. double offset = 0,
  11. Axis axis = Axis.horizontal,
  12. PdfColor? pointColor,
  13. double pointSize = 3,
  14. bool drawPoints = false,
  15. BuildCallback? shape,
  16. Widget buildValue(
    1. Context context,
    2. T value
    )?,
  17. ValuePosition valuePosition = ValuePosition.auto,
})

Implementation

BarDataSet({
  required List<T> data,
  String? legend,
  PdfColor? borderColor,
  double borderWidth = 1.5,
  PdfColor color = PdfColors.blue,
  bool? drawBorder,
  this.drawSurface = true,
  this.surfaceOpacity = 1,
  this.width = 10,
  this.offset = 0,
  this.axis = Axis.horizontal,
  PdfColor? pointColor,
  double pointSize = 3,
  bool drawPoints = false,
  BuildCallback? shape,
  Widget Function(Context context, T value)? buildValue,
  ValuePosition valuePosition = ValuePosition.auto,
})  : drawBorder = drawBorder ?? borderColor != null && color != borderColor,
      assert((drawBorder ?? borderColor != null && color != borderColor) ||
          drawSurface),
      super(
        legend: legend,
        color: pointColor ?? color,
        data: data,
        buildValue: buildValue,
        drawPoints: drawPoints,
        pointSize: pointSize,
        shape: shape,
        valuePosition: valuePosition,
        borderColor: borderColor,
        borderWidth: borderWidth,
      );