PieChartWidget constructor

const PieChartWidget({
  1. Key? key,
  2. required List<PieData> data,
  3. double borderWidth = 2.0,
  4. bool showLegend = true,
  5. bool showLabel = true,
  6. Axis legendLayout = Axis.horizontal,
  7. String? title,
  8. String? subtitle,
  9. Widget? header,
  10. Widget? footer,
  11. PieSegmentCallback? onSegmentTap,
  12. bool isLoading = false,
  13. bool isError = false,
  14. double? height,
  15. EdgeInsets? padding,
  16. EdgeInsets? margin,
  17. ChartsConfig? config,
})

Implementation

const PieChartWidget({
  super.key,
  required this.data,
  this.borderWidth = 2.0,
  this.showLegend = true,
  this.showLabel = true,
  this.legendLayout = Axis.horizontal,
  this.title,
  this.subtitle,
  this.header,
  this.footer,
  this.onSegmentTap,
  this.isLoading = false,
  this.isError = false,
  this.height,
  this.padding,
  this.margin,
  this.config,
});