padding property Null safety

double padding
final

Padding between the legend items.

Used to add padding between the icon shape and the text.

Defaults to 5.0

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

Implementation

final double padding;