onSelectionChanged property
Occurs while selection changes. Here, you can get the series, selected color, unselected color, selected border color, unselected border color, selected border width, unselected border width, series index, and point index.
Widget build(BuildContext context) {
return Container(
child: SfFunnelChart(
onSelectionChanged: (SelectionArgs args) => select(args),
)
);
}
void select(SelectionArgs args) {
print(args.selectedBorderColor);
}
Implementation
final FunnelSelectionCallback? onSelectionChanged;