enabled property

bool enabled
final

Whether the menu item is enabled or disabled.

The default value is true. If true, the DropdownMenuEntry.label will be filled out in the text field of the DropdownMenu when this entry is clicked; otherwise, this entry is disabled.

Implementation

final bool enabled;