RadialBarSeries<T, D> constructor

const RadialBarSeries<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. Color trackColor = const Color.fromRGBO(234, 236, 239, 1.0),
  16. double trackBorderWidth = 0.0,
  17. double trackOpacity = 1,
  18. bool useSeriesColor = false,
  19. Color trackBorderColor = Colors.transparent,
  20. double? maximumValue,
  21. DataLabelSettings dataLabelSettings = const DataLabelSettings(),
  22. String radius = '80%',
  23. String innerRadius = '50%',
  24. String gap = '1%',
  25. double opacity = 1.0,
  26. Color strokeColor = Colors.transparent,
  27. double strokeWidth = 2.0,
  28. bool enableTooltip = true,
  29. String? name,
  30. double animationDuration = 1500,
  31. double animationDelay = 0,
  32. SelectionBehavior? selectionBehavior,
  33. SortingOrder sortingOrder = SortingOrder.none,
  34. LegendIconType legendIconType = LegendIconType.seriesType,
  35. CornerStyle cornerStyle = CornerStyle.bothFlat,
  36. List<int>? initialSelectedDataIndexes,
})

Creating an argument constructor of RadialBarSeries class.

Implementation

const RadialBarSeries({
  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,
  this.trackColor = const Color.fromRGBO(234, 236, 239, 1.0),
  this.trackBorderWidth = 0.0,
  this.trackOpacity = 1,
  this.useSeriesColor = false,
  this.trackBorderColor = Colors.transparent,
  this.maximumValue,
  super.dataLabelSettings,
  super.radius = '80%',
  super.innerRadius = '50%',
  super.gap = '1%',
  super.opacity,
  Color strokeColor = Colors.transparent,
  double strokeWidth = 2.0,
  super.enableTooltip = true,
  super.name,
  super.animationDuration,
  super.animationDelay,
  super.selectionBehavior,
  super.sortingOrder,
  super.legendIconType,
  super.cornerStyle = CornerStyle.bothFlat,
  super.initialSelectedDataIndexes,
}) : super(
        borderColor: strokeColor,
        borderWidth: strokeWidth,
      );