selectOnly property
final
Determines if the dropdown menu behaves as a 'select' component.
This is useful for mobile platforms where a dropdown menu is commonly used as a 'select' widget (i.e., the user can only select from the list, not edit the text field to search or filter).
When true, the inner text field is read-only.
If the text field is also focusable (see requestFocusOnTap), the following behaviors are also activated:
- Pressing Enter when the menu is closed opens it.
- The decoration reflects the focus state.
Defaults to false.
Implementation
final bool selectOnly;