PieChartWidget constructor
const
PieChartWidget({
- Key? key,
- required List<
PieData> data, - ChartTheme? theme,
- double borderWidth = 2.0,
- bool showLegend = true,
- bool showLabel = true,
- String? title,
- String? subtitle,
- bool useGlassmorphism = false,
- bool useNeumorphism = false,
- PieSegmentCallback? onSegmentTap,
- bool isLoading = false,
- bool isError = false,
- 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,
});