onSelectionChanged property

PyramidSelectionCallback? onSelectionChanged
final

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: SfPyramidChart(
           onSelectionChanged: (SelectionArgs args) => select(args),
       )
   );
}
void select(SelectionArgs args) {
  print(args.selectedBorderColor);
}

Implementation

final PyramidSelectionCallback? onSelectionChanged;