closeBehavior property

DropdownMenuCloseBehavior closeBehavior
final

Defines the behavior for closing the dropdown menu when an item is selected.

The close behavior can be set to:

This property allows fine-grained control over the menu's closing behavior, which can be useful for creating nested or complex menu structures.

Defaults to DropdownMenuCloseBehavior.all.

Implementation

final DropdownMenuCloseBehavior closeBehavior;