PieChart constructor

const PieChart({
  1. Key? key,
  2. required List<PieChartData> data,
  3. String? title,
  4. TextStyle? titleStyle,
  5. double aspectRatio = 3.0,
  6. LegendPosition legendPosition = LegendPosition.bottom,
  7. String pieTooltipBuilder(
    1. PieChartData data
    )?,
})

Implementation

const PieChart({
  super.key,
  required this.data,
  this.title,
  this.titleStyle,
  this.aspectRatio = 3.0,
  this.legendPosition = LegendPosition.bottom,
  this.pieTooltipBuilder,
});