select

fun <A, B> StateFlow<A>.select(transform: (A) -> B): StateFlow<B>(source)

Derives distinct immediate state. Keep transform pure and cheap; use selectAsync for heavy work.