DropdownOption class
Represents an option in a dropdown selection field.
Constructors
- DropdownOption({required String value, required String label})
-
Creates a new DropdownOption instance.
const
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts this DropdownOption instance to a JSON map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromJson(
Map< String, dynamic> json) → DropdownOption - Creates a DropdownOption instance from a JSON map.