toSet method

Set<T> toSet()

Implementation

Set<T> toSet() => map((t) => {t}).orElseGet({});