toSet method

Observable<Set<T>> toSet([
  1. Map0<Set<T>>? constructor
])

Returns a Set from an observable sequence.

Implementation

Observable<Set<T>> toSet([Map0<Set<T>>? constructor]) =>
    ToSetObservable<T>(this, constructor ?? () => <T>{});