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