DonutChartWidget constructor

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

Implementation

const DonutChartWidget({
  super.key,
  required this.data,
  this.borderWidth = 2.0,
  this.centerSpaceRadius = 70.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,
});