exceptEmpty method

Map<K, V?> exceptEmpty()
  • return the map without key of empty values

Implementation

Map<K, V?> exceptEmpty() {
  final holder = Map<K, V?>.of(this);
  holder.removeWhere((key, value) => value is String && value.isEmpty);
  return holder;
}