orEmpty property

Set<T> get orEmpty

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

Implementation

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