FieldDropdown class
A dropdown button lets the user select from a number of items. The button shows the currently selected item as well as an arrow that opens a menu for selecting another item.
Each item is represented by a DropdownMenuItem
widget. The type is the type of the values/keys used to identify each menu item and determine which item is currently selected. The type of the value is the type of the value associated with each menu item.
The dropdown button itself does not maintain the current value. Instead, when the user selects an item, the dropdown button calls the onChanged
callback. Most widgets that use a dropdown button will listen for the onChanged
callback and rebuild the dropdown button with a new value
to update the currently selected item.
Constructors
Properties
- enabled → bool?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hint → String?
-
final
- initialValue → dynamic
-
final
- label → String?
-
final
-
options
→ List<
Map< String, dynamic> > -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sequence → double?
-
final
- type → String
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited