DropdownItem<T> class
The item that will be used to build the dropdown menu.
Constructors
- DropdownItem({required T value, bool selected = false})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selected → bool
-
Whether the item is selected.
Users can specify if an item is selected when initializing a DropdownController;
otherwise, they can only select an item by calling DropdownController.select manually.
final
- value → T
-
The value of the item.
final
Methods
-
copyWith(
{T? value, bool? selected}) → DropdownItem< T> -
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 ==(
covariant DropdownItem< T> other) → bool -
The equality operator.
override