PieChartWidget constructor

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

Implementation

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