whereNone method

Map<K, None<V>> whereNone()

Creates a new map containing only the entries where the value is a None.

Implementation

Map<K, None<V>> whereNone() => Map.fromEntries(
      entries
          .where((e) => e.value.isNone())
          .map((e) => MapEntry(e.key, e.value.none().unwrap())),
    );