fromMap<V> static method

List<TSelectItem<V>> fromMap<V>(
  1. Map<String, V> items
)

Implementation

static List<TSelectItem<V>> fromMap<V>(Map<String, V> items) {
  return items.entries
      .map((entry) => TSelectItem<V>(
            text: entry.key,
            value: entry.value,
            key: entry.key,
          ))
      .toList();
}