iconBorderColor property

Color? iconBorderColor
final

Border color of the icon in the legend items.

Used to change the stroke color of the legend icon shape.

Defaults to Colors.transparent.

Widget build(BuildContext context) {
  return SfCartesianChart(
    legend: Legend(
      isVisible: true,
      iconBorderColor: Colors.yellow,
      iconBorderWidth: 4
    )
  );
}

Implementation

final Color? iconBorderColor;