toMutableStateMap
Function
Common
public fun <K, V> Iterable<Pair<K, V>>.toMutableStateMap() =
SnapshotStateMap<K, V>().also { it.putAll(this.toMap()) }
Create an instance of MutableMap
<K, V> from a collection of pairs that is observable and can be
snapshot.