PieSeries<T, D> constructor

PieSeries<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. ChartValueMapper<T, D>? xValueMapper,
  9. 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. int? startAngle,
  16. int? endAngle,
  17. String? radius,
  18. bool? explode,
  19. bool? explodeAll,
  20. int? explodeIndex,
  21. ActivationMode? explodeGesture,
  22. String? explodeOffset,
  23. double? groupTo,
  24. CircularChartGroupMode? groupMode,
  25. PointRenderMode? pointRenderMode,
  26. EmptyPointSettings? emptyPointSettings,
  27. Color? strokeColor,
  28. double? strokeWidth,
  29. double? opacity,
  30. DataLabelSettings? dataLabelSettings,
  31. bool? enableTooltip,
  32. String? name,
  33. double? animationDuration,
  34. double? animationDelay,
  35. SelectionBehavior? selectionBehavior,
  36. SortingOrder? sortingOrder,
  37. LegendIconType? legendIconType,
  38. List<int>? initialSelectedDataIndexes,
})

Creating an argument constructor of PieSeries class.

Implementation

PieSeries(
    {ValueKey<String>? key,
    ChartSeriesRendererFactory<T, D>? onCreateRenderer,
    CircularSeriesRendererCreatedCallback? onRendererCreated,
    ChartPointInteractionCallback? onPointTap,
    ChartPointInteractionCallback? onPointDoubleTap,
    ChartPointInteractionCallback? onPointLongPress,
    List<T>? dataSource,
    ChartValueMapper<T, D>? xValueMapper,
    ChartValueMapper<T, num>? yValueMapper,
    ChartValueMapper<T, Color>? pointColorMapper,
    ChartShaderMapper<T>? pointShaderMapper,
    ChartValueMapper<T, String>? pointRadiusMapper,
    ChartValueMapper<T, String>? dataLabelMapper,
    ChartValueMapper<T, String>? sortFieldValueMapper,
    int? startAngle,
    int? endAngle,
    String? radius,
    bool? explode,
    bool? explodeAll,
    int? explodeIndex,
    ActivationMode? explodeGesture,
    String? explodeOffset,
    double? groupTo,
    CircularChartGroupMode? groupMode,
    PointRenderMode? pointRenderMode,
    EmptyPointSettings? emptyPointSettings,
    Color? strokeColor,
    double? strokeWidth,
    double? opacity,
    DataLabelSettings? dataLabelSettings,
    bool? enableTooltip,
    String? name,
    double? animationDuration,
    double? animationDelay,
    SelectionBehavior? selectionBehavior,
    SortingOrder? sortingOrder,
    LegendIconType? legendIconType,
    List<int>? initialSelectedDataIndexes})
    : super(
          key: key,
          onCreateRenderer: onCreateRenderer,
          onRendererCreated: onRendererCreated,
          onPointTap: onPointTap,
          onPointDoubleTap: onPointDoubleTap,
          onPointLongPress: onPointLongPress,
          animationDuration: animationDuration,
          animationDelay: animationDelay,
          dataSource: dataSource,
          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: pointRadiusMapper == null
              ? null
              : (int index) => pointRadiusMapper(dataSource![index], index),
          dataLabelMapper: (int index) => dataLabelMapper != null
              ? dataLabelMapper(dataSource![index], index)
              : null,
          sortFieldValueMapper: sortFieldValueMapper != null
              ? (int index) => sortFieldValueMapper(dataSource![index], index)
              : null,
          pointShaderMapper: pointShaderMapper != null
              ? (dynamic data, int index, Color color, Rect rect) =>
                  pointShaderMapper(dataSource![index], index, color, rect)
              : null,
          startAngle: startAngle,
          endAngle: endAngle,
          radius: radius,
          explode: explode,
          explodeAll: explodeAll,
          explodeIndex: explodeIndex,
          explodeOffset: explodeOffset,
          explodeGesture: explodeGesture,
          groupTo: groupTo,
          groupMode: groupMode,
          pointRenderMode: pointRenderMode,
          emptyPointSettings: emptyPointSettings,
          initialSelectedDataIndexes: initialSelectedDataIndexes,
          borderColor: strokeColor,
          borderWidth: strokeWidth,
          opacity: opacity,
          dataLabelSettings: dataLabelSettings,
          enableTooltip: enableTooltip,
          name: name,
          selectionBehavior: selectionBehavior,
          legendIconType: legendIconType,
          sortingOrder: sortingOrder);