pick method

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

Implementation

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