filter

inline fun <T> Flow<T>.filter(crossinline predicate: suspend (T) -> Boolean): Flow<T>

Returns a flow containing only values of the original flow that match the given predicate.

Sources

common source
Link copied to clipboard