filterNull<K, V> method
Filter null values from the map. Returns a new map with non-null values.
Implementation
Map<K, V> filterNull<K, V>() {
final map = <K, V>{};
for (final key in keys) {
if (this[key] != null) {
map[key as K] = this[key] as V;
}
}
return map;
}