William Reed
MutableStateFlow<Map<..., ...>>
StateFlow
stateFlow.value = stateFlow.value.toMutableMap().apply { … modify …}
inline fun <K, V> MutableStateFlow<MutableMap<K, V>>.mutate(mutation: (MutableMap<K, V>) -> Unit) { val newValue = value.toMutableMap() mutation(newValue) value = newValue }
stateFlow.mutate { ... modify ... }
melatonina
RecyclerView
Nick Allen
MutableStateFlow<Map<K, V>>
stateFlow.value += item
A modern programming language that makes developers happier.