crossAxisUnconstrained property

bool crossAxisUnconstrained
final

Determine if the menu panel can be wrapped by a UnconstrainedBox which allows the panel to render at its "natural" size.

Defaults to true as it allows developers to render the menu panel at the size it should be. When it is set to false, it can be useful when the menu should be constrained in both main axis and cross axis, such as a DropdownMenu.

Implementation

final bool crossAxisUnconstrained;