removeNulls method
New map without null values (handy before sending JSON). body.removeNulls()
Implementation
Map<K, V> removeNulls() => <K, V>{
for (final MapEntry<K, V> e in entries)
if (e.value != null) e.key: e.value,
};
New map without null values (handy before sending JSON). body.removeNulls()
Map<K, V> removeNulls() => <K, V>{
for (final MapEntry<K, V> e in entries)
if (e.value != null) e.key: e.value,
};