iconBorderWidth property

double iconBorderWidth
final

Border width of the icon in the legend items.

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

Defaults to 0.0.

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

Implementation

final double iconBorderWidth;