ifEmpty method

Iterable<T> ifEmpty(
  1. Iterable<T> value
)

Returns this Iterable if it's not empty, otherwise returns value.

Implementation

Iterable<T> ifEmpty(Iterable<T> value) => isEmpty ? value : this;