nullIfEmpty property
Map<T1, T2> ?
get
nullIfEmpty
Returns null if the Map is empty, otherwise returns the Map.
Implementation
Map<T1, T2>? get nullIfEmpty {
return isEmpty ? null : this;
}
Returns null if the Map is empty, otherwise returns the Map.
Map<T1, T2>? get nullIfEmpty {
return isEmpty ? null : this;
}