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