distinct method

Observable<T> distinct({
  1. Predicate2<T, T>? equals,
  2. Map1<T, int>? hashCode,
})

Emits all items emitted by this Observable that are distinct from the previous ones.

Implementation

Observable<T> distinct({Predicate2<T, T>? equals, Map1<T, int>? hashCode}) =>
    DistinctObservable<T>(this, equals, hashCode);