pick method

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

Returns a new map containing only the specified keys.

{'a': 1, 'b': 2, 'c': 3}.pick(['a', 'c']) // {'a': 1, 'c': 3}

Implementation

Map<K, V> pick(List<K> keys) => filterKeys(keys);