Join Slack
Powered by
You can just make the set private like ``` va...
# announcements
r
Ricky
05/13/2018, 1:56 PM
You can just make the set private like
Copy code
var countGets: Int = 0 get() = ++field private set
so that anyone outside the class or .kt file (it depends on where you declare the property) cannot modify it.
Open in Slack
Previous
Next