flatMapLatestNotNull

inline fun <T, R> Flow<T>.flatMapLatestNotNull(crossinline transform: suspend (value: T) -> Flow<R>?): Flow<R>

Flat map latest not null

Receiver

Flow the flow to be mapped

Return

Flow the resulting mapped flow

Parameters

transform

SuspendFunction1<@kotlin.ParameterName T, Flow?> transformation for the mapping process