constrainCrossAxis property
final
Whether the menu's cross axis should be constrained by the overlay.
If true, when the menu is wider than the overlay, the menu width will shrink to fit the overlay bounds.
If false, the menu will grow to fit the size of its contents. If the menu is wider than the overlay, it will be clipped to the overlay's bounds.
Defaults to false.
Implementation
final bool constrainCrossAxis;