PyramidChartWidget constructor

PyramidChartWidget({
  1. Key? key,
  2. required List<PieData> data,
  3. ChartTheme? theme,
  4. String? title,
  5. String? subtitle,
  6. bool useGlassmorphism = false,
  7. bool useNeumorphism = false,
  8. PieSegmentCallback? onSegmentTap,
  9. bool isLoading = false,
  10. bool isError = false,
  11. String? errorMessage,
})

Implementation

PyramidChartWidget({
  super.key,
  required this.data,
  this.theme,
  this.title,
  this.subtitle,
  this.useGlassmorphism = false,
  this.useNeumorphism = false,
  this.onSegmentTap,
  this.isLoading = false,
  this.isError = false,
  this.errorMessage,
}) : assert(
        data.isNotEmpty,
        'PyramidChartWidget requires at least one data segment',
      );