removeNull method

Map<String, dynamic> removeNull()

remove when value is null or empty string

Implementation

Map<String, dynamic> removeNull(){
  removeWhere((key, value) => value==null || (value is String && value.isEmpty));
  return this;
}