enabled property

bool enabled
final

Determine if the DropdownMenu is enabled.

Defaults to true.

This sample demonstrates how the enabled and requestFocusOnTap properties affect the textfield's hover cursor.
link

To create a local project with this code sample, run:
flutter create --sample=material.DropdownMenu.enabled.1 mysample

Implementation

final bool enabled;