removeNulls function

Map<String, dynamic> removeNulls(
  1. Map<String, dynamic> map
)

Implementation

Map<String, dynamic> removeNulls(Map<String, dynamic> map) {
  map.removeWhere((key, value) => value == null);
  return map;
}