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 SfCartesianChart(
    legend: Legend(
      isVisible: true,
      borderColor: Colors.red,
      borderWidth: 3
    )
  );
}

Implementation

final Color? borderColor;