orEmpty method

KtList<T> orEmpty()

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

Implementation

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