Because if its just a property or such updating th...
# announcements
j
Because if its just a property or such updating then you can do it with
Delegates.observable
Copy code
class Person {
    var name: String by Delegates.observable("jake") { prop, old, new ->
        println("$prop changed from $old to $new")
    }
}

fun main(args: Array<String>) {
    val p = Person()
    p.name = "dave"
}