borderColor property

Color borderColor
final

Border color of the legend.

Used to change the stroke color of the legend shape.

Defaults to Colors.transparent

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
           legend: Legend(
              isVisible: true,
              borderColor: Colors.brown)
       ));
}

Implementation

final Color borderColor;