map

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

Returns a flow containing the results of applying the given transform function to each value of the original flow.

Sources

common source
Link copied to clipboard