CircularSeries<T, D> constructor

CircularSeries<T, D>({
  1. ValueKey<String>? key,
  2. ChartSeriesRendererFactory<T, D>? onCreateRenderer,
  3. CircularSeriesRendererCreatedCallback? onRendererCreated,
  4. List<T>? dataSource,
  5. ChartIndexedValueMapper<D>? xValueMapper,
  6. ChartIndexedValueMapper<num>? yValueMapper,
  7. ChartIndexedValueMapper<Color>? pointColorMapper,
  8. ChartShaderMapper? pointShaderMapper,
  9. ChartIndexedValueMapper<String>? pointRadiusMapper,
  10. ChartIndexedValueMapper<String>? dataLabelMapper,
  11. ChartIndexedValueMapper? sortFieldValueMapper,
  12. int? startAngle,
  13. int? endAngle,
  14. String? radius,
  15. String? innerRadius,
  16. bool? explode,
  17. bool? explodeAll,
  18. int? explodeIndex,
  19. ActivationMode? explodeGesture,
  20. String? explodeOffset,
  21. double? groupTo,
  22. CircularChartGroupMode? groupMode,
  23. PointRenderMode? pointRenderMode,
  24. String? gap,
  25. double? opacity,
  26. EmptyPointSettings? emptyPointSettings,
  27. Color? borderColor,
  28. double? borderWidth,
  29. DataLabelSettings? dataLabelSettings,
  30. bool? enableTooltip,
  31. bool? enableSmartLabels,
  32. String? name,
  33. double? animationDuration,
  34. SelectionSettings? selectionSettings,
  35. SelectionBehavior? selectionBehavior,
  36. SortingOrder? sortingOrder,
  37. LegendIconType? legendIconType,
  38. CornerStyle? cornerStyle,
  39. List<int>? initialSelectedDataIndexes,
})

Creating an argument constructor of CircularSeries class.

Implementation

CircularSeries(
    {this.key,
    this.onCreateRenderer,
    this.onRendererCreated,
    this.dataSource,
    this.xValueMapper,
    this.yValueMapper,
    this.pointColorMapper,
    this.pointShaderMapper,
    this.pointRadiusMapper,
    this.dataLabelMapper,
    this.sortFieldValueMapper,
    int? startAngle,
    int? endAngle,
    String? radius,
    String? innerRadius,
    bool? explode,
    bool? explodeAll,
    this.explodeIndex,
    ActivationMode? explodeGesture,
    String? explodeOffset,
    this.groupTo,
    this.groupMode,
    this.pointRenderMode,
    String? gap,
    double? opacity,
    EmptyPointSettings? emptyPointSettings,
    Color? borderColor,
    double? borderWidth,
    DataLabelSettings? dataLabelSettings,
    bool? enableTooltip,
    bool? enableSmartLabels,
    this.name,
    double? animationDuration,
    // ignore: deprecated_member_use_from_same_package
    SelectionSettings? selectionSettings,
    SelectionBehavior? selectionBehavior,
    SortingOrder? sortingOrder,
    LegendIconType? legendIconType,
    CornerStyle? cornerStyle,
    List<int>? initialSelectedDataIndexes})
    : startAngle = startAngle ?? 0,
      animationDuration = animationDuration ?? 1500,
      endAngle = endAngle ?? 360,
      radius = radius ?? '80%',
      innerRadius = innerRadius ?? '50%',
      explode = explode ?? false,
      explodeAll = explodeAll ?? false,
      explodeOffset = explodeOffset ?? '10%',
      explodeGesture = explodeGesture ?? ActivationMode.singleTap,
      gap = gap ?? '1%',
      cornerStyle = cornerStyle ?? CornerStyle.bothFlat,
      dataLabelSettings = dataLabelSettings ?? DataLabelSettings(),
      emptyPointSettings = emptyPointSettings ?? EmptyPointSettings(),
      // ignore: deprecated_member_use_from_same_package
      selectionSettings = selectionSettings ?? SelectionSettings(),
      selectionBehavior = selectionBehavior ?? SelectionBehavior(),
      borderColor = borderColor ?? Colors.transparent,
      borderWidth = borderWidth ?? 0.0,
      opacity = opacity ?? 1,
      enableTooltip = enableTooltip ?? true,
      sortingOrder = sortingOrder ?? SortingOrder.none,
      legendIconType = legendIconType ?? LegendIconType.seriesType,
      enableSmartLabels = enableSmartLabels ?? true,
      initialSelectedDataIndexes = initialSelectedDataIndexes ?? <int>[],
      super(name: name) {
  _renderer = _ChartSeriesRender();
}