distinctUntilChanged

@ExperimentalCoroutinesApi fun <T> Flow<T>.distinctUntilChanged(): Flow<T> (source)

Returns flow where all subsequent repetitions of the same value are filtered out.

@FlowPreview fun <T> Flow<T>.distinctUntilChanged(
    areEquivalent: (old: T, new: T) -> Boolean
): Flow<T>
(source)

Returns flow where all subsequent repetitions of the same value are filtered out, when compared with each other via the provided areEquivalent function.