enabled property

bool enabled

Whether this popup menu button is interactive.

Defaults to true.

If true, the button will respond to presses by displaying the menu.

If false, the button is styled with the disabled color from the current Theme and will not respond to presses or show the popup menu and onSelected, onCanceled and itemBuilder will not be called.

This can be useful in situations where the app needs to show the button, but doesn't currently have anything to show in the menu.


final bool enabled;