padding property

EdgeInsets? padding
final

The padding of the menu item.

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

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

Implementation

final EdgeInsets? padding;