selectionBehavior property
Customizes the selection of series.
Widget build(BuildContext context) {
return Container(
child: SfCircularChart(
series: <PieSeries<ChartData, String>>[
PieSeries<ChartData, String>(
selectionBehavior: SelectionBehavior(
selectedColor: Colors.red,
unselectedColor: Colors.grey
),
),
],
));
}
Implementation
@override
final SelectionBehavior selectionBehavior;