FunnelSeries<T, D> constructor

const FunnelSeries<T, D>({
  1. ValueKey<String>? key,
  2. ChartSeriesRendererFactory<T, D>? onCreateRenderer,
  3. FunnelSeriesRendererCreatedCallback<T, D>? onRendererCreated,
  4. ChartPointInteractionCallback? onPointTap,
  5. ChartPointInteractionCallback? onPointDoubleTap,
  6. ChartPointInteractionCallback? onPointLongPress,
  7. List<T>? dataSource,
  8. ChartValueMapper<T, D>? xValueMapper,
  9. EmptyPointSettings emptyPointSettings = const EmptyPointSettings(),
  10. DataLabelSettings dataLabelSettings = const DataLabelSettings(),
  11. ChartValueMapper<T, num>? yValueMapper,
  12. ChartValueMapper<T, Color>? pointColorMapper,
  13. ChartValueMapper<T, String>? textFieldMapper,
  14. String? name,
  15. num? explodeIndex,
  16. String neckWidth = '20%',
  17. String neckHeight = '20%',
  18. String height = '80%',
  19. String width = '80%',
  20. double gapRatio = 0,
  21. String explodeOffset = '10%',
  22. bool explode = false,
  23. ActivationMode explodeGesture = ActivationMode.singleTap,
  24. Color borderColor = Colors.transparent,
  25. double borderWidth = 2.0,
  26. LegendIconType legendIconType = LegendIconType.seriesType,
  27. double animationDuration = 1500,
  28. double animationDelay = 0,
  29. double opacity = 1.0,
  30. SelectionBehavior? selectionBehavior,
  31. List<int>? initialSelectedDataIndexes,
})

Creating an argument constructor of FunnelSeries class.

Implementation

const FunnelSeries({
  super.key,
  this.onCreateRenderer,
  this.onRendererCreated,
  super.onPointTap,
  super.onPointDoubleTap,
  super.onPointLongPress,
  super.dataSource,
  super.xValueMapper,
  super.emptyPointSettings,
  super.dataLabelSettings,
  this.yValueMapper,
  super.pointColorMapper,
  ChartValueMapper<T, String>? textFieldMapper,
  super.name,
  this.explodeIndex,
  this.neckWidth = '20%',
  this.neckHeight = '20%',
  this.height = '80%',
  this.width = '80%',
  this.gapRatio = 0,
  this.explodeOffset = '10%',
  this.explode = false,
  this.explodeGesture = ActivationMode.singleTap,
  this.borderColor = Colors.transparent,
  super.borderWidth,
  super.legendIconType,
  super.animationDuration,
  super.animationDelay,
  super.opacity,
  super.selectionBehavior,
  super.initialSelectedDataIndexes,
}) : super(
        dataLabelMapper: textFieldMapper,
      );