SunburstArcRendererConfig<D> constructor

SunburstArcRendererConfig<D>({
  1. String? customRendererId,
  2. double arcLength = 2 * pi,
  3. List<ArcRendererDecorator<D>> arcRendererDecorators = const [],
  4. double? arcRatio,
  5. List<int>? arcRatios,
  6. int? arcWidth,
  7. List<int>? arcWidths,
  8. SunburstColorStrategy colorAssignmentStrategy = SunburstColorStrategy.newShadePerLevel,
  9. int layoutPaintOrder = LayoutViewPaintOrder.arc,
  10. int? maxDisplayLevel,
  11. int? initialDisplayLevel,
  12. int minHoleWidthForCenterContent = 30,
  13. double startAngle = -pi / 2,
  14. double strokeWidthPx = 2.0,
  15. SymbolRenderer? symbolRenderer,
})

Implementation

SunburstArcRendererConfig(
    {String? customRendererId,
    double arcLength = 2 * pi,
    List<ArcRendererDecorator<D>> arcRendererDecorators = const [],
    double? arcRatio,
    this.arcRatios,
    int? arcWidth,
    this.arcWidths,
    this.colorAssignmentStrategy = SunburstColorStrategy.newShadePerLevel,
    int layoutPaintOrder = LayoutViewPaintOrder.arc,
    int? maxDisplayLevel,
    int? initialDisplayLevel,
    int minHoleWidthForCenterContent = 30,
    double startAngle = -pi / 2,
    double strokeWidthPx = 2.0,
    SymbolRenderer? symbolRenderer})
    : this.maxDisplayLevel = maxDisplayLevel ?? _maxInt32Value,
      this.initialDisplayLevel =
          initialDisplayLevel ?? maxDisplayLevel ?? _maxInt32Value,
      super(
          customRendererId: customRendererId,
          arcLength: arcLength,
          arcRatio: arcRatio,
          arcWidth: arcWidth,
          layoutPaintOrder: layoutPaintOrder,
          minHoleWidthForCenterContent: minHoleWidthForCenterContent,
          startAngle: startAngle,
          strokeWidthPx: strokeWidthPx,
          arcRendererDecorators: arcRendererDecorators);