nullProtected property

Map<String, dynamic> get nullProtected

Returns a new map with null keys or values removed

Implementation

// ignore: always_specify_types
Map<String, dynamic> get nullProtected => {...this}
  // ignore: always_specify_types
  ..removeWhere((String key, value) => value == null);