filterNotNull

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

Alias for takeNotNull. 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)