DistinctUniqueStreamTransformer<S> constructor

DistinctUniqueStreamTransformer<S>({
  1. bool equals(
    1. S e1,
    2. S e2
    )?,
  2. int hashCodeMethod(
    1. S e
    )?,
})

Constructs a StreamTransformer which emits events from the source Stream as if they were processed through a HashSet.

See HashSet for a more detailed explanation.

Implementation

DistinctUniqueStreamTransformer({this.equals, this.hashCodeMethod});