DoughnutSeries<T, D> constructor

const DoughnutSeries<T, D>({
  1. ValueKey<String>? key,
  2. ChartSeriesRendererFactory<T, D>? onCreateRenderer,
  3. CircularSeriesRendererCreatedCallback<T, D>? onRendererCreated,
  4. ChartPointInteractionCallback? onPointTap,
  5. ChartPointInteractionCallback? onPointDoubleTap,
  6. ChartPointInteractionCallback? onPointLongPress,
  7. List<T>? dataSource,
  8. required ChartValueMapper<T, D>? xValueMapper,
  9. required ChartValueMapper<T, num>? yValueMapper,
  10. ChartValueMapper<T, Color>? pointColorMapper,
  11. ChartShaderMapper? pointShaderMapper,
  12. ChartValueMapper<T, String>? pointRadiusMapper,
  13. ChartValueMapper<T, String>? dataLabelMapper,
  14. ChartValueMapper<T, dynamic>? sortFieldValueMapper,
  15. int startAngle = 0,
  16. int endAngle = 360,
  17. String radius = '80%',
  18. String innerRadius = '50%',
  19. bool explode = false,
  20. bool explodeAll = false,
  21. ActivationMode explodeGesture = ActivationMode.singleTap,
  22. String explodeOffset = '10%',
  23. int? explodeIndex,
  24. double? groupTo,
  25. CircularChartGroupMode? groupMode,
  26. PointRenderMode? pointRenderMode,
  27. EmptyPointSettings emptyPointSettings = const EmptyPointSettings(),
  28. Color strokeColor = Colors.transparent,
  29. double strokeWidth = 2.0,
  30. DataLabelSettings dataLabelSettings = const DataLabelSettings(),
  31. bool enableTooltip = true,
  32. String? name,
  33. double opacity = 1.0,
  34. double animationDuration = 1500,
  35. double animationDelay = 0,
  36. SelectionBehavior? selectionBehavior,
  37. SortingOrder sortingOrder = SortingOrder.none,
  38. LegendIconType legendIconType = LegendIconType.seriesType,
  39. CornerStyle cornerStyle = CornerStyle.bothFlat,
  40. List<int>? initialSelectedDataIndexes,
})

Creating an argument constructor of DoughnutSeries class.

Implementation

const DoughnutSeries({
  super.key,
  super.onCreateRenderer,
  super.onRendererCreated,
  super.onPointTap,
  super.onPointDoubleTap,
  super.onPointLongPress,
  super.dataSource,
  required super.xValueMapper,
  required super.yValueMapper,
  super.pointColorMapper,
  super.pointShaderMapper,
  super.pointRadiusMapper,
  super.dataLabelMapper,
  super.sortFieldValueMapper,
  super.startAngle = 0,
  super.endAngle = 360,
  super.radius = '80%',
  super.innerRadius = '50%',
  this.explode = false,
  this.explodeAll = false,
  this.explodeGesture = ActivationMode.singleTap,
  this.explodeOffset = '10%',
  this.explodeIndex,
  super.groupTo,
  super.groupMode,
  super.pointRenderMode,
  super.emptyPointSettings,
  Color strokeColor = Colors.transparent,
  double strokeWidth = 2.0,
  super.dataLabelSettings,
  super.enableTooltip = true,
  super.name,
  super.opacity,
  super.animationDuration,
  super.animationDelay,
  super.selectionBehavior,
  super.sortingOrder,
  super.legendIconType,
  super.cornerStyle = CornerStyle.bothFlat,
  super.initialSelectedDataIndexes,
}) : super(
        borderColor: strokeColor,
        borderWidth: strokeWidth,
      );