filterMap<K2, V2> method

Map<K2, V2> filterMap<K2, V2>(
  1. MapEntry<K2, V2>? f(
    1. K,
    2. V
    )
)

Implementation

Map<K2, V2> filterMap<K2, V2>(MapEntry<K2, V2>? Function(K, V) f) =>
    Map.fromEntries(
        entries.map((e) => f(e.key, e.value)).whereType<MapEntry<K2, V2>>());