FunnelSeries<T, D> constructor

FunnelSeries<T, D>({
  1. ValueKey<String>? key,
  2. ChartSeriesRendererFactory<T, D>? onCreateRenderer,
  3. FunnelSeriesRendererCreatedCallback? 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. ChartValueMapper<T, String>? textFieldMapper,
  12. String? name,
  13. String? neckWidth,
  14. String? neckHeight,
  15. String? height,
  16. String? width,
  17. double? gapRatio,
  18. LegendIconType? legendIconType,
  19. EmptyPointSettings? emptyPointSettings,
  20. DataLabelSettings? dataLabelSettings,
  21. double? animationDuration,
  22. double? animationDelay,
  23. double? opacity,
  24. Color? borderColor,
  25. double? borderWidth,
  26. bool? explode,
  27. ActivationMode? explodeGesture,
  28. String? explodeOffset,
  29. SelectionBehavior? selectionBehavior,
  30. num? explodeIndex,
  31. List<int>? initialSelectedDataIndexes,
})

Creating an argument constructor of FunnelSeries class.

Implementation

FunnelSeries({
  ValueKey<String>? key,
  ChartSeriesRendererFactory<T, D>? onCreateRenderer,
  FunnelSeriesRendererCreatedCallback? onRendererCreated,
  ChartPointInteractionCallback? onPointTap,
  ChartPointInteractionCallback? onPointDoubleTap,
  ChartPointInteractionCallback? onPointLongPress,
  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? animationDelay,
  double? opacity,
  Color? borderColor,
  double? borderWidth,
  bool? explode,
  ActivationMode? explodeGesture,
  String? explodeOffset,
  SelectionBehavior? selectionBehavior,
  num? explodeIndex,
  List<int>? initialSelectedDataIndexes,
}) : super(
          key: key,
          onCreateRenderer: onCreateRenderer,
          onRendererCreated: onRendererCreated,
          onPointTap: onPointTap,
          onPointDoubleTap: onPointDoubleTap,
          onPointLongPress: onPointLongPress,
          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,
          animationDelay: animationDelay,
          explode: explode,
          explodeIndex: explodeIndex,
          explodeGesture: explodeGesture,
          explodeOffset: explodeOffset,
          selectionBehavior: selectionBehavior,
          initialSelectedDataIndexes: initialSelectedDataIndexes);