selectionBehavior property
Customizes the selection of series.
SelectionBehavior _selectionBehavior;
void initState() {
_selectionBehavior = SelectionBehavior(enable: true);
super.initState();
}
Widget build(BuildContext context) {
return Container(
child: SfCircularChart(
series: <PieSeries<ChartData, String>>[
PieSeries<ChartData, String>(
selectionBehavior: _selectionBehavior
),
],
)
);
}
Implementation
@override
final SelectionBehavior selectionBehavior;