withoutNullValues method

Map<K, V> withoutNullValues()

Implementation

Map<K, V> withoutNullValues() {
  return <K, V>{
    for (final entry in entries)
      if (entry.value != null) entry.key: entry.value as V,
  };
}