firstNotNull

suspend fun <T> Flow<T>.firstNotNull(): T

The terminal operator that returns the first non-null element emitted by the flow and then cancels flow's collection. Throws NoSuchElementException if the flow was empty.