padding property

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 SfCartesianChart(
    legend: Legend(
      isVisible: true,
      padding: 4.0
    )
  );
}

Implementation

final double padding;