withoutNullValues method
Returns a copy without null values.
Implementation
Map<K, V> withoutNullValues() {
return Map<K, V>.fromEntries(
entries.where((entry) => entry.value != null),
);
}
Returns a copy without null values.
Map<K, V> withoutNullValues() {
return Map<K, V>.fromEntries(
entries.where((entry) => entry.value != null),
);
}