SpiderChart constructor

const SpiderChart({
  1. Key? key,
  2. List<String>? labels,
  3. List<double?>? data,
  4. double maxValue = 100,
  5. SpiderChartThemeData theme = const SpiderChartThemeData(),
  6. dynamic onLabelTap(
    1. int,
    2. Offset
    )?,
  7. bool showLabels = true,
  8. int? selectedIndex,
  9. double rotationAngle = 0.0,
})

Implementation

const SpiderChart({
  super.key,
  List<String>? labels,
  List<double?>? data,
  this.maxValue = 100,
  this.theme = const SpiderChartThemeData(),
  this.onLabelTap,
  this.showLabels = true,
  this.selectedIndex,
  this.rotationAngle = 0.0,
})  : labels = labels ?? const [],
      data = data ?? const [];