ifEmpty method

Iterable<V> ifEmpty(
  1. Getter<Iterable<V>> other
)

Implementation

Iterable<V> ifEmpty(Getter<Iterable<V>> other) {
  if (this.isNullOrEmpty) {
    return other();
  } else {
    return this!;
  }
}