distinctRuntimeType method

Stream<T> distinctRuntimeType()

Stream.distinct by T.runtimeType

Implementation

Stream<T> distinctRuntimeType() => distinct((bef, aft) => bef.runtimeType == aft.runtimeType);