CircularSeries<T, D> constructor

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

Creating an argument constructor of CircularSeries class.

Implementation

CircularSeries(
    {this.key,
    this.onCreateRenderer,
    this.onRendererCreated,
    this.onPointTap,
    this.onPointDoubleTap,
    this.onPointLongPress,
    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,
    this.name,
    double? animationDuration,
    double? animationDelay,
    SelectionBehavior? selectionBehavior,
    SortingOrder? sortingOrder,
    LegendIconType? legendIconType,
    CornerStyle? cornerStyle,
    List<int>? initialSelectedDataIndexes})
    : startAngle = startAngle ?? 0,
      animationDuration = animationDuration ?? 1500,
      animationDelay = animationDelay ?? 0,
      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 ?? const DataLabelSettings(),
      emptyPointSettings = emptyPointSettings ?? EmptyPointSettings(),
      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,
      initialSelectedDataIndexes = initialSelectedDataIndexes ?? <int>[],
      super(name: name);