whereNotNull method
BuiltMap<K, V>
whereNotNull()
Returns BuiltMap
without null keys and values.
Implementation
BuiltMap<K, V> whereNotNull() {
return BuiltMap<K, V>((b) {
forEach((key, value) {
if (key != null && value != null) {
b[key] = value;
}
});
});
}