SfFunnelChart constructor

const SfFunnelChart({
  1. Key? key,
  2. Color? backgroundColor,
  3. ImageProvider<Object>? backgroundImage,
  4. Color borderColor = Colors.transparent,
  5. double borderWidth = 0.0,
  6. FunnelLegendRenderCallback? onLegendItemRender,
  7. FunnelTooltipCallback? onTooltipRender,
  8. FunnelDataLabelRenderCallback? onDataLabelRender,
  9. ChartLegendTapCallback? onLegendTapped,
  10. DataLabelTapCallback? onDataLabelTapped,
  11. FunnelSelectionCallback? onSelectionChanged,
  12. FunnelTouchInteractionCallback? onChartTouchInteractionUp,
  13. FunnelTouchInteractionCallback? onChartTouchInteractionDown,
  14. FunnelTouchInteractionCallback? onChartTouchInteractionMove,
  15. List<Color>? palette,
  16. EdgeInsets margin = const EdgeInsets.fromLTRB(10, 10, 10, 10),
  17. FunnelSeries series = const FunnelSeries(),
  18. ChartTitle title = const ChartTitle(),
  19. Legend legend = const Legend(),
  20. TooltipBehavior? tooltipBehavior,
  21. ActivationMode selectionGesture = ActivationMode.singleTap,
  22. bool enableMultiSelection = false,
})

Creating an argument constructor of SfFunnelChart class.

Implementation

const SfFunnelChart({
  Key? key,
  this.backgroundColor,
  this.backgroundImage,
  this.borderColor = Colors.transparent,
  this.borderWidth = 0.0,
  this.onLegendItemRender,
  this.onTooltipRender,
  this.onDataLabelRender,
  this.onLegendTapped,
  this.onDataLabelTapped,
  this.onSelectionChanged,
  this.onChartTouchInteractionUp,
  this.onChartTouchInteractionDown,
  this.onChartTouchInteractionMove,
  this.palette,
  this.margin = const EdgeInsets.fromLTRB(10, 10, 10, 10),
  this.series = const FunnelSeries(),
  this.title = const ChartTitle(),
  this.legend = const Legend(),
  this.tooltipBehavior,
  this.selectionGesture = ActivationMode.singleTap,
  this.enableMultiSelection = false,
}) : super(key: key);