BarChart constructor

const BarChart({
  1. Key? key,
  2. required List<DataItem> dataset,
  3. String title = '',
  4. bool showTitle = true,
  5. bool showLabels = true,
  6. bool showLegend = false,
  7. bool showLines = true,
  8. Function onBarTap = _defaultOnTap,
  9. bool isPrimary = true,
  10. DatasetOrdering? datasetOrdering,
})

Implementation

const BarChart({
  super.key,
  required this.dataset,
  this.title = '',
  this.showTitle = true,
  this.showLabels = true,
  this.showLegend = false,
  this.showLines = true,
  this.onBarTap = _defaultOnTap,
  this.isPrimary = true,
  this.datasetOrdering,
});