getDropdownItems method

List<DropdownMenuItem<T>> getDropdownItems()

Implementation

List<DropdownMenuItem<T>> getDropdownItems() => _items == null ||
        _items!.isEmpty
    ? <DropdownMenuItem<T>>[]
    : _items!.entries.map(
        (MapEntry<T, I> entry) {
          return DropdownMenuItem<T>(value: entry.key, child: entry.value);
        },
      ).toList();