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.

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

Implementation

final EdgeInsets? padding;