DropdownItem<T> class

Represents an item in a dropdown menu.

Constructors

Creates a new instance of DropdownItem.
Creates a new instance of DropdownItem from a map.
factory

Properties

disabled bool
Indicates whether the dropdown item is disabled.
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
id String
final
label String
The label of the dropdown item.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selected bool
Indicates whether the dropdown item is selected.
getter/setter pair
value → T
The value associated with the dropdown item.
final

Methods

copyWith({String? label, T? value, bool? disabled, bool? selected}) DropdownItem<T>
Creates a copy of the DropdownItem instance with the specified properties.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
Converts the DropdownItem instance to a JSON string.
toMap() Map<String, dynamic>
Converts the DropdownItem instance to a map.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override