RadarChartWidget constructor

RadarChartWidget({
  1. Key? key,
  2. required List<RadarDataSet> dataSets,
  3. ChartTheme? theme,
  4. double maxValue = 100.0,
  5. int gridLevels = 5,
  6. bool showGrid = true,
  7. bool showAxis = true,
  8. bool showLabel = true,
  9. String? title,
  10. String? subtitle,
  11. bool useGlassmorphism = false,
  12. bool useNeumorphism = false,
  13. ChartPointCallback? onPointTap,
  14. bool isLoading = false,
  15. bool isError = false,
  16. 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');