Hey guys can somone tell me what is the use of `pr...
# android
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