itemPadding property

double itemPadding
final

Padding of the legend items.

Used to add padding between the first legend text and the second legend icon shape.

Defaults to 10.0.

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

Implementation

final double itemPadding;