DropdownValue class
The value property is what you see when the dropdown is expanded,
with the optional description being the text below.
Constructors
- DropdownValue({required String value, String? description, dynamic metadata})
-
const
Properties
- description → String?
-
This goes under the dropdown value when the dropdown is expanded.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- metadata → dynamic
-
Any additional data:
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → 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
Static Methods
-
fromListOfStrings(
List< String> values) → List<DropdownValue> - A simple static helper to help with when you don't need the descriptions.