toMap method
Converts the DropdownItem instance to a map.
The returned map will contain the following keys:
- 'label': The label of the dropdown item.
- 'value': The value associated with the dropdown item.
- 'disabled': Indicates whether the dropdown item is disabled.
- 'selected': Indicates whether the dropdown item is selected.
Implementation
Map<String, dynamic> toMap() {
return {
'label': label,
'value': value,
'disabled': disabled,
'selected': selected,
};
}