Hey guys can somone tell me what is the use of `private set` in here ? ```var number : Int by mutabl...
v
Hey guys can somone tell me what is the use of
private set
in here ?
Copy code
var number : Int by mutableStateOf(0)
        private set
k
I hope this blog will help you to understand the use of
private set
- https://agrawalsuneet.medium.com/property-getter-and-setter-kotlin-d89a3e70e62
v
oh that's great thank you so much... ๐Ÿ˜Š
๐Ÿ˜€ 1
h
itโ€™s just for prevent assign to
number
any new value !!
v
Thankyou