orEmpty method

Iterable<T> orEmpty()

Returns this Iterable if it's not null and the empty list otherwise.

Implementation

Iterable<T> orEmpty() => this ?? [];