DonutChartWidget constructor

const DonutChartWidget({
  1. Key? key,
  2. required List<PieData> data,
  3. ChartTheme? theme,
  4. double borderWidth = 2.0,
  5. double centerSpaceRadius = 60,
  6. bool showLegend = true,
  7. bool showLabel = true,
  8. String? title,
  9. String? subtitle,
  10. bool useGlassmorphism = false,
  11. bool useNeumorphism = false,
  12. PieSegmentCallback? onSegmentTap,
  13. bool isLoading = false,
  14. bool isError = false,
  15. String? errorMessage,
})

Implementation

const DonutChartWidget({
  super.key,
  required this.data,
  this.theme,
  this.borderWidth = 2.0,
  this.centerSpaceRadius = 60,
  this.showLegend = true,
  this.showLabel = true,
  this.title,
  this.subtitle,
  this.useGlassmorphism = false,
  this.useNeumorphism = false,
  this.onSegmentTap,
  this.isLoading = false,
  this.isError = false,
  this.errorMessage,
});