FunnelSeries<T, D> constructor Null safety

FunnelSeries<T, D>(
  1. {ValueKey<String>? key,
  2. ChartSeriesRendererFactory<T, D>? onCreateRenderer,
  3. FunnelSeriesRendererCreatedCallback? onRendererCreated,
  4. List<T>? dataSource,
  5. ChartValueMapper<T, D>? xValueMapper,
  6. ChartValueMapper<T, num>? yValueMapper,
  7. ChartValueMapper<T, Color>? pointColorMapper,
  8. ChartValueMapper<T, String>? textFieldMapper,
  9. String? name,
  10. String? neckWidth,
  11. String? neckHeight,
  12. String? height,
  13. String? width,
  14. double? gapRatio,
  15. LegendIconType? legendIconType,
  16. EmptyPointSettings? emptyPointSettings,
  17. DataLabelSettings? dataLabelSettings,
  18. double? animationDuration,
  19. double? opacity,
  20. Color? borderColor,
  21. double? borderWidth,
  22. bool? explode,
  23. ActivationMode? explodeGesture,
  24. String? explodeOffset,
  25. SelectionSettings? selectionSettings,
  26. SelectionBehavior? selectionBehavior,
  27. num? explodeIndex,
  28. List<int>? initialSelectedDataIndexes}
)

Creating an argument constructor of FunnelSeries class.

Implementation

FunnelSeries({
  ValueKey<String>? key,
  ChartSeriesRendererFactory<T, D>? onCreateRenderer,
  FunnelSeriesRendererCreatedCallback? onRendererCreated,
  List<T>? dataSource,
  ChartValueMapper<T, D>? xValueMapper,
  ChartValueMapper<T, num>? yValueMapper,
  ChartValueMapper<T, Color>? pointColorMapper,
  ChartValueMapper<T, String>? textFieldMapper,
  String? name,
  String? neckWidth,
  String? neckHeight,
  String? height,
  String? width,
  double? gapRatio,
  LegendIconType? legendIconType,
  EmptyPointSettings? emptyPointSettings,
  DataLabelSettings? dataLabelSettings,
  double? animationDuration,
  double? opacity,
  Color? borderColor,
  double? borderWidth,
  bool? explode,
  ActivationMode? explodeGesture,
  String? explodeOffset,
  // ignore: deprecated_member_use_from_same_package
  SelectionSettings? selectionSettings,
  SelectionBehavior? selectionBehavior,
  num? explodeIndex,
  List<int>? initialSelectedDataIndexes,
}) : super(
          key: key,
          onCreateRenderer: onCreateRenderer,
          onRendererCreated: onRendererCreated,
          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,
          textFieldMapper: (int index) => textFieldMapper != null
              ? textFieldMapper(dataSource![index], index)
              : null,
          name: name,
          neckWidth: neckWidth,
          neckHeight: neckHeight,
          height: height,
          width: width,
          gapRatio: gapRatio,
          emptyPointSettings: emptyPointSettings,
          dataLabelSettings: dataLabelSettings,
          legendIconType: legendIconType,
          opacity: opacity,
          borderColor: borderColor,
          borderWidth: borderWidth,
          animationDuration: animationDuration,
          explode: explode,
          explodeIndex: explodeIndex,
          explodeGesture: explodeGesture,
          explodeOffset: explodeOffset,
          selectionSettings: selectionSettings,
          selectionBehavior: selectionBehavior,
          initialSelectedDataIndexes: initialSelectedDataIndexes);