RadarChart constructor

RadarChart({
  1. Key? key,
  2. required double radius,
  3. required int length,
  4. double initialAngle = 0,
  5. Color? backgroundColor,
  6. double borderStroke = 4.0,
  7. Color? borderColor,
  8. double? radialStroke,
  9. Color? radialColor,
  10. List<RadarTile> radars = const [],
  11. List<PreferredSizeWidget>? vertices,
})

Radar chart, also known as Spider chart

Implementation

RadarChart({
  Key? key,
  required this.radius,
  required this.length,
  this.initialAngle = 0,
  this.backgroundColor,
  this.borderStroke = 4.0,
  this.borderColor,
  this.radialStroke,
  this.radialColor,
  this.radars = const [],
  this.vertices,
})  : assert(length >= 3),
      assert(radius > 0),
      super(
        key: key,
        child: Stack(children: [
          RadarTile(
            backgroundColor: backgroundColor,
            borderStroke: borderStroke,
            borderColor: borderColor,
            radialStroke: radialStroke,
            radialColor: radialColor,
            vertices: vertices,
          ),
          ...radars
        ]),
      );