exceptNull method

Map<K, V> exceptNull()
  • return the map without key of null values

Implementation

Map<K, V> exceptNull() {
  final holder = Map<K, V>.of(this);
  holder.removeWhere((key, value) => value == null);
  return holder;
}