castNotNull

inline fun <T : Any> Flow<T?>.castNotNull(): Flow<T>(source)

Adapt this Flow<T?> to be a Flow<T>.

At the collection time, if this Flow has any null value, a NullPointerException will be thrown.