padding property

EdgeInsets? padding
final

The padding of the menu item.

Note that width may interact with the applied padding. For example, If a width greater than the width of the sum of the padding and child is provided, then the padding's effect will not be visible.

If this is null and ThemeData.useMaterial3 is true, the vertical padding defaults to 12.0 on both sides.

If this is null and ThemeData.useMaterial3 is false, the vertical padding defaults to 16.0 on both sides.

When null, the vertical padding defaults to 16.0 on both sides.

Implementation

final EdgeInsets? padding;