RadarChartWidget constructor
RadarChartWidget({
- Key? key,
- required List<
RadarDataSet> dataSets, - ChartTheme? theme,
- double maxValue = 100.0,
- int gridLevels = 5,
- bool showGrid = true,
- bool showAxis = true,
- bool showLabel = true,
- String? title,
- String? subtitle,
- bool useGlassmorphism = false,
- bool useNeumorphism = false,
- ChartPointCallback? onPointTap,
- bool isLoading = false,
- bool isError = false,
- String? errorMessage,
Implementation
RadarChartWidget({
super.key,
required this.dataSets,
this.theme,
this.maxValue = 100.0,
this.gridLevels = 5,
this.showGrid = true,
this.showAxis = true,
this.showLabel = true,
this.title,
this.subtitle,
this.useGlassmorphism = false,
this.useNeumorphism = false,
this.onPointTap,
this.isLoading = false,
this.isError = false,
this.errorMessage,
}) : assert(
dataSets.isNotEmpty,
'RadarChartWidget requires at least one data set',
),
assert(maxValue > 0, 'Max value must be positive'),
assert(gridLevels > 0, 'Grid levels must be positive');