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. dynamic onBarTap(
    1. DataItem
    ) = _defaultOnTap,
  9. DatasetOrdering? datasetOrdering,
})

Creates a BarChart widget.

The dataset parameter is required and must contain at least one DataItem. All other parameters have sensible defaults.

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.datasetOrdering,
});