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() => _selectedItemValue != null
    ? [DropdownItem(value: _selectedItemValue as T, selected: true)]
    : [];