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 super.data,
  super.legend,
  super.borderColor,
  super.borderWidth,
  PdfColor color = PdfColors.blue,
  bool? drawBorder,
  this.drawSurface = true,
  this.surfaceOpacity = 1,
  this.width = 10,
  this.offset = 0,
  this.axis = Axis.horizontal,
  PdfColor? pointColor,
  super.pointSize,
  super.drawPoints = false,
  super.shape,
  super.buildValue,
  super.valuePosition,
})  : drawBorder = drawBorder ?? borderColor != null && color != borderColor,
      assert((drawBorder ?? borderColor != null && color != borderColor) ||
          drawSurface),
      super(
        color: pointColor ?? color,
      );