takeNotNull

fun <T> Flow<T>.takeNotNull(): Flow<T & Any>(source)

Filters out null values from this Flow, returning only non-null elements.

Return

A Flow containing only non-null elements

Type Parameters

T

The type of elements in the flow (nullable)