selectedBorderColor property

Color? selectedBorderColor
final

Border color of the selected data points or series.

late SelectionBehavior selectionBehavior;

void initState() {
  selectionBehavior = SelectionBehavior(
    enable: true,
    selectedBorderWidth: 4,
    selectedBorderColor: Colors.red
  );
  super.initState();
}

Widget build(BuildContext context) {
  return SfCartesianChart(
    series: <BarSeries<SalesData, num>>[
      BarSeries<SalesData, num>(
        selectionBehavior: selectionBehavior
      ),
    ],
  );
}

Implementation

final Color? selectedBorderColor;