RadialBarSeries<T, D> constructor

RadialBarSeries<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. required ChartValueMapper<T, D> xValueMapper,
  9. required ChartValueMapper<T, num> yValueMapper,
  10. ChartValueMapper<T, Color>? pointColorMapper,
  11. ChartShaderMapper<T>? pointShaderMapper,
  12. ChartValueMapper<T, String>? pointRadiusMapper,
  13. ChartValueMapper<T, String>? dataLabelMapper,
  14. ChartValueMapper<T, String>? 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,
  22. String? radius,
  23. String? innerRadius,
  24. String? gap,
  25. double? strokeWidth,
  26. double? opacity,
  27. Color? strokeColor,
  28. bool? enableTooltip,
  29. String? name,
  30. double? animationDuration,
  31. double? animationDelay,
  32. SelectionBehavior? selectionBehavior,
  33. SortingOrder? sortingOrder,
  34. LegendIconType? legendIconType,
  35. CornerStyle? cornerStyle,
  36. List<int>? initialSelectedDataIndexes,
})

Creating an argument constructor of RadialBarSeries class.

Implementation

RadialBarSeries(
    {ValueKey<String>? key,
    ChartSeriesRendererFactory<T, D>? onCreateRenderer,
    CircularSeriesRendererCreatedCallback? onRendererCreated,
    ChartPointInteractionCallback? onPointTap,
    ChartPointInteractionCallback? onPointDoubleTap,
    ChartPointInteractionCallback? onPointLongPress,
    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,
    String? name,
    double? animationDuration,
    double? animationDelay,
    SelectionBehavior? selectionBehavior,
    SortingOrder? sortingOrder,
    LegendIconType? legendIconType,
    CornerStyle? cornerStyle,
    List<int>? initialSelectedDataIndexes})
    : super(
        key: key,
        onCreateRenderer: onCreateRenderer,
        onRendererCreated: onRendererCreated,
        onPointTap: onPointTap,
        onPointDoubleTap: onPointDoubleTap,
        onPointLongPress: onPointLongPress,
        dataSource: dataSource,
        animationDuration: animationDuration,
        animationDelay: animationDelay,
        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,
        selectionBehavior: selectionBehavior,
        sortingOrder: sortingOrder,
        legendIconType: legendIconType,
        cornerStyle: cornerStyle,
        initialSelectedDataIndexes: initialSelectedDataIndexes,
      );