Bar<T> constructor

Bar<T>({
  1. required List<T> data,
  2. required BarPosition value,
  3. required ChartPosition<T> position,
  4. BarValueFormatter? valueFormatter,
  5. Offset valueOffset = Offset.zero,
  6. TextStyle textStyle = const TextStyle(fontSize: 10, color: Colors.black),
  7. int yAxisPosition = 0,
  8. double itemWidth = 20,
  9. Color color = Colors.blue,
  10. List<Color>? colors,
  11. Shader? shader,
  12. Color? highlightColor = Colors.yellow,
})

Implementation

Bar({
  required super.data,
  required this.value,
  required this.position,
  this.valueFormatter,
  this.valueOffset = Offset.zero,
  this.textStyle = const TextStyle(fontSize: 10, color: Colors.black),
  super.yAxisPosition,
  this.itemWidth = 20,
  this.color = Colors.blue,
  this.colors,
  this.shader,
  this.highlightColor = Colors.yellow,
});