RadialBarSeries<T, D> constructor

RadialBarSeries<T, D>({
  1. ValueKey<String>? key,
  2. ChartSeriesRendererFactory<T, D>? onCreateRenderer,
  3. CircularSeriesRendererCreatedCallback? onRendererCreated,
  4. List<T>? dataSource,
  5. required ChartValueMapper<T, D> xValueMapper,
  6. required ChartValueMapper<T, num> yValueMapper,
  7. ChartValueMapper<T, Color>? pointColorMapper,
  8. ChartShaderMapper<T>? pointShaderMapper,
  9. ChartValueMapper<T, String>? pointRadiusMapper,
  10. ChartValueMapper<T, String>? dataLabelMapper,
  11. ChartValueMapper<T, String>? sortFieldValueMapper,
  12. Color trackColor = const Color.fromRGBO(234, 236, 239, 1.0),
  13. double trackBorderWidth = 0.0,
  14. double trackOpacity = 1,
  15. bool useSeriesColor = false,
  16. Color trackBorderColor = Colors.transparent,
  17. double? maximumValue,
  18. DataLabelSettings? dataLabelSettings,
  19. String? radius,
  20. String? innerRadius,
  21. String? gap,
  22. double? strokeWidth,
  23. double? opacity,
  24. Color? strokeColor,
  25. bool? enableTooltip,
  26. bool? enableSmartLabels,
  27. String? name,
  28. double? animationDuration,
  29. SelectionSettings? selectionSettings,
  30. SelectionBehavior? selectionBehavior,
  31. SortingOrder? sortingOrder,
  32. LegendIconType? legendIconType,
  33. CornerStyle? cornerStyle,
  34. List<int>? initialSelectedDataIndexes,
})

Creating an argument constructor of RadialBarSeries class.

Implementation

RadialBarSeries(
    {ValueKey<String>? key,
    ChartSeriesRendererFactory<T, D>? onCreateRenderer,
    CircularSeriesRendererCreatedCallback? onRendererCreated,
    List<T>? dataSource,
    required ChartValueMapper<T, D> xValueMapper,
    required ChartValueMapper<T, num> yValueMapper,
    ChartValueMapper<T, Color>? pointColorMapper,
    ChartShaderMapper<T>? pointShaderMapper,
    ChartValueMapper<T, String>? pointRadiusMapper,
    ChartValueMapper<T, String>? dataLabelMapper,
    ChartValueMapper<T, String>? 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,
    DataLabelSettings? dataLabelSettings,
    String? radius,
    String? innerRadius,
    String? gap,
    double? strokeWidth,
    double? opacity,
    Color? strokeColor,
    bool? enableTooltip,
    bool? enableSmartLabels,
    String? name,
    double? animationDuration,
    // ignore: deprecated_member_use_from_same_package
    SelectionSettings? selectionSettings,
    SelectionBehavior? selectionBehavior,
    SortingOrder? sortingOrder,
    LegendIconType? legendIconType,
    CornerStyle? cornerStyle,
    List<int>? initialSelectedDataIndexes})
    : super(
        key: key,
        onCreateRenderer: onCreateRenderer,
        onRendererCreated: onRendererCreated,
        dataSource: dataSource,
        animationDuration: animationDuration,
        xValueMapper: (int index) => xValueMapper(dataSource![index], index),
        yValueMapper: (int index) => yValueMapper(dataSource![index], index),
        pointColorMapper: (int index) => pointColorMapper != null
            ? pointColorMapper(dataSource![index], index)
            : null,
        pointRadiusMapper: (int index) => pointRadiusMapper != null
            ? pointRadiusMapper(dataSource![index], index)
            : null,
        pointShaderMapper: pointShaderMapper != null
            ? (dynamic data, int index, Color color, Rect rect) =>
                pointShaderMapper(dataSource![index], index, color, rect)
            : null,
        dataLabelMapper: (int index) => dataLabelMapper != null
            ? dataLabelMapper(dataSource![index], index)
            : null,
        sortFieldValueMapper: sortFieldValueMapper != null
            ? (int index) => sortFieldValueMapper(dataSource![index], index)
            : null,
        radius: radius,
        innerRadius: innerRadius,
        gap: gap,
        borderColor: strokeColor,
        borderWidth: strokeWidth,
        opacity: opacity,
        enableTooltip: enableTooltip,
        dataLabelSettings: dataLabelSettings,
        name: name,
        selectionSettings: selectionSettings,
        selectionBehavior: selectionBehavior,
        sortingOrder: sortingOrder,
        legendIconType: legendIconType,
        enableSmartLabels: enableSmartLabels,
        cornerStyle: cornerStyle,
        initialSelectedDataIndexes: initialSelectedDataIndexes,
      );