emptyIfNull static method

Iterable emptyIfNull(
  1. Iterable? collection
)

Returns an immutable empty collection if the argument is null, or the argument itself otherwise.

Implementation

static Iterable emptyIfNull(final Iterable? collection) {
  return collection ?? _emptyIterable;
}