select

fun <R> select(transform: (T?) -> R): StateFlow<R>(source)

Synchronous projection for cheap work. Use selectAsync for expensive computations.