RadarChart constructor

RadarChart({
  1. Key? key,
  2. required RadarChartDataProvider provider,
  3. required MarkerBuilder builder,
  4. double radius = 50,
  5. int levelCount = 3,
  6. double maxValue = 10,
  7. double minValue = 0,
  8. double markerMargin = 4,
  9. int sidesCount = 5,
  10. List<Offset>? offset,
  11. Color axisLineColor = const Color(0xFFCCCCCC),
  12. bool crossedAxisLine = false,
  13. double animateProgress = 1.0,
  14. double rotateAngle = 0,
})

Implementation

RadarChart({
  Key? key,
  required this.provider,
  required MarkerBuilder builder,
  this.radius = 50,
  this.levelCount = 3,
  this.maxValue = 10,
  this.minValue = 0,
  this.markerMargin = 4,
  this.sidesCount = 5,
  this.offset,
  this.axisLineColor = const Color(0xFFCCCCCC),
  this.crossedAxisLine = false,
  this.animateProgress = 1.0,
  this.rotateAngle = 0,
})  : assert(minValue < maxValue),
      assert(sidesCount >= 3),
      super(
          key: key,
          children: () {
            List<Widget> children = [];
            for (int i = 0; i < sidesCount; i++) {
              children.add(builder(i));
            }
            return children;
          }());