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