items property

List<M3EDropdownItem<T>> get items

The items visible to the dropdown list.

Returns the filtered subset when a search query is active, otherwise returns all items.

Implementation

List<M3EDropdownItem<T>> get items => _searchQuery.isEmpty
    ? List.unmodifiable(_items)
    : List.unmodifiable(_filteredItems);