orEmpty property

Set<T> orEmpty

Creates empty Set if this nullable Set is null, otherwise returns this Set.

Implementation

Set<T> get orEmpty => this ?? {};