getLastSelected method
The last selected item, for SingleSelectionDropdownController, it would be the current selected item; for MultiSelectionDropdownController, it would be the last selected item.
Implementation
@override
DropdownItem<T>? getLastSelected() => _selectedItems.isNotEmpty
? DropdownItem(value: _selectedItems.last, selected: true)
: null;