itemPadding property

double itemPadding
final

Padding of the legend items.

Defaults to 10.0.

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
           legend: Legend(
              isVisible: true,
              itemPadding: 5)
       ));
}

Implementation

final double itemPadding