nonNullKeys property
Map<K, V>
get
nonNullKeys
Returns a new map with all non-null keys and values.
Implementation
Map<K, V> get nonNullKeys {
return Map<K, V>.fromEntries(
entries
.where((e) => e.key != null)
.map((e) => MapEntry(e.key as K, e.value)),
);
}