LumenDropdownItem<T> class

Item displayed on LumenDropdown.

Maintains the type of the generic value.

Constructors

LumenDropdownItem({required T value, required String label, IconData? icon})
Creates a dropdown item with value and label.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
icon → IconData?
Optional icon displayed before label.
final
label → String
Text displayed in the options list.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
value → T
Value returned when this item is selected.
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