iconWidth property

double iconWidth
final

Width of the icon in legend item.

Used to change the width of the icon shape.

Defaults to 12.

Widget build(BuildContext context) {
  return SfCartesianChart(
    legend: Legend(
      isVisible: true,
      iconWidth: 14
    )
  );
}

Implementation

final double iconWidth;