getAllSelectedItems method

  1. @override
List<DropdownItem<T>> getAllSelectedItems()
override

All selected items, for SingleSelectionDropdownController, it would be the current selected item; for MultiSelectionDropdownController, it would be all selected items.

Implementation

@override
List<DropdownItem<T>> getAllSelectedItems() => _selectedItems
    .map((e) => DropdownItem(value: e, selected: true))
    .toList();