distinctBy

fun <T, K> Flow<T>.distinctBy(selector: (T) -> K): Flow<T>

Returns a flow which only emits unique values determined by the given selector function.

Sources

jvm source
Link copied to clipboard