pick method

Map<K, V> pick(
  1. Iterable<K> keys
)

New map with only the listed keys. user.pick(["id", "name"])

Implementation

Map<K, V> pick(Iterable<K> keys) => <K, V>{
  for (final K k in keys)
    if (containsKey(k)) k: this[k] as V,
};