noneIfEmpty property

Option<Set<E>> get noneIfEmpty

Implementation

Option<Set<E>> get noneIfEmpty {
  return Option.from(isEmpty ? null : this);
}