10 fun <T1, T2, T3, R> ViewModel.buildUiModel( flow: StateFlow<T1>, flow2: StateFlow<T2>, flow3: StateFlow<T3>, transform: (T1, T2, T3) -> R, ): StateFlow<R> = combine( flow = flow, flow2 = flow2, flow3 = flow3, transform = transform ).stateIn( scope = viewModelScope, started = SharingStarted.WhileSubscribed(5_000), initialValue = transform( flow.value, flow2.value, flow3.value ) ) ͜͜ͰॳظΛܭࢉͯ͠͠·͏ Ҿ͕ͯ͢StateFlowͳͷͰɺ͜Ε ͕ՄೳʹͳΔɻ