toMutableStateList

Function

Common
public fun <T> Collection<T>.toMutableStateList() = SnapshotStateList<T>().also { it.addAll(this) }

Create an instance of MutableList from a collection that is observable and can be snapshot.