Is there a way to expose a property as List outsid...
# getting-started
t
Is there a way to expose a property as List outside of the class but access it as MutableList inside the class?
m
Copy code
private val _list: MutableList<X> = mutableListOf()
val list: List<T> get() = _list
t
A little bit ugly but I guess there's no other way. Thanks!