enabled property

bool enabled
final

Whether this popup menu button is interactive.

Must be non-null, 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.

Implementation

final bool enabled