Last active
April 30, 2019 01:17
-
-
Save agustarc/c2d89ca192a7a3a915346029d1c24ec0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object AccountPreference : PreferenceHolder() { | |
var name: String by ReadWriteString(key = "pref_name", default = "leopold", predicate = { it.length > 2 }) | |
var age: Int by ReadWriteInt() | |
var hireable: Boolean by ReadWriteBoolean() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment