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