filterIsInstance

inline fun <R> Flow<*>.filterIsInstance(): Flow<R>(source)

Returns a flow containing only values that are instances of specified type R.


fun <R : Any> Flow<*>.filterIsInstance(klass: KClass<R>): Flow<R>(source)

Returns a flow containing only values that are instances of the given klass.