iconWidth property Null safety

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 Container(
       child: SfCartesianChart(
           legend: Legend(
              isVisible: true,
              iconWidth: 14)
       ));
}

Implementation

final double iconWidth;