-
Notifications
You must be signed in to change notification settings - Fork 0
state in view model
milan jurkulák edited this page May 2, 2024
·
1 revision
//tvlib/org.mjdev.tvlib.viewmodel/BaseViewModel/stateInViewModel
[androidJvm]
fun <K, V> Flow<Map<K, V>>.stateInViewModel(initial: Map<K, V> = mapOf()): StateFlow<Map<K, V>>
fun <T> Flow<List<T>>.stateInViewModel(initial: List<T> = listOf()): StateFlow<List<T>>
fun <T> Flow<T>.stateInViewModel(initial: T): StateFlow<T>