SfFunnelChart constructor
const
SfFunnelChart({
- Key? key,
- Color? backgroundColor,
- ImageProvider<
Object> ? backgroundImage, - Color borderColor = Colors.transparent,
- double borderWidth = 0.0,
- FunnelLegendRenderCallback? onLegendItemRender,
- FunnelTooltipCallback? onTooltipRender,
- FunnelDataLabelRenderCallback? onDataLabelRender,
- ChartLegendTapCallback? onLegendTapped,
- DataLabelTapCallback? onDataLabelTapped,
- FunnelSelectionCallback? onSelectionChanged,
- FunnelTouchInteractionCallback? onChartTouchInteractionUp,
- FunnelTouchInteractionCallback? onChartTouchInteractionDown,
- FunnelTouchInteractionCallback? onChartTouchInteractionMove,
- List<
Color> ? palette, - EdgeInsets margin = const EdgeInsets.fromLTRB(10, 10, 10, 10),
- FunnelSeries series = const FunnelSeries(),
- ChartTitle title = const ChartTitle(),
- Legend legend = const Legend(),
- TooltipBehavior? tooltipBehavior,
- ActivationMode selectionGesture = ActivationMode.singleTap,
- 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);