orEmpty method

KtCollection<T> orEmpty()

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

Implementation

KtCollection<T> orEmpty() => this ?? KtList<T>.empty();