currentItems property

  1. @override
List<DropdownItem<T>> get currentItems
override

Current items that will be shown in the dropdown menu, see also _currentItemValues.

Implementation

@override
List<DropdownItem<T>> get currentItems => _currentItemValues
    .map((e) => DropdownItem(
          value: e,
          selected: e == _selectedItemValue,
        ))
    .toList();