RadarDataSet constructor

RadarDataSet({
  1. List<RadarEntry>? dataEntries,
  2. Color? fillColor,
  3. Color? borderColor,
  4. double? borderWidth,
  5. double? entryRadius,
})

RadarChart can contain multiple RadarDataSet And it shows them on top of each other. each RadarDataSet has a set of dataEntries and the RadarChart uses this dataEntries to draw the chart.

it fill dataSets with fillColor.

the RadarDataSet can have custom border. for changing border of RadarDataSet you can modify the borderColor and borderWidth.

Implementation

RadarDataSet({
  List<RadarEntry>? dataEntries,
  Color? fillColor,
  Color? borderColor,
  double? borderWidth,
  double? entryRadius,
})  : assert(
        dataEntries == null || dataEntries.isEmpty || dataEntries.length >= 3,
        'Radar needs at least 3 RadarEntry',
      ),
      dataEntries = dataEntries ?? const [],
      fillColor = fillColor ?? Colors.cyan.withOpacity(0.2),
      borderColor = borderColor ?? Colors.cyan,
      borderWidth = borderWidth ?? 2.0,
      entryRadius = entryRadius ?? 5.0;