leosan
04/24/2018, 4:36 PMDelegates.observable
of a read-only property? e.g.
data class Foo(bar:Boolean, car:Boolean)
val foo by Delegates.observable(Foo(false,false)){...}
foo.bar = true
gildor
04/24/2018, 4:45 PMfoo.bar = true
To do that bar must be Delegates.observable itselfleosan
04/24/2018, 4:50 PMdave08
04/24/2018, 7:40 PMgildor
04/25/2018, 5:22 AMmake the setter private thoughBut sample code itself is impossible, you cannot observe changes of nested property (foo.bar), you can observe changes of foo itself