filter

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

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