ifEmpty method

Set<T> ifEmpty(
  1. Set<T> value
)

Returns this Set if it's not empty, otherwise returns value.

Implementation

Set<T> ifEmpty(Set<T> value) => isEmpty ? value : this;