You could make it a lot more concise though. Using Kotlin's observable delegate for example
Copy code
class ViewModel(val id: String) : BaseObservable() {
@get:Bindable
var name by Delegates.observable("Name") {
kproperty, old, new ->
notifyPropertyChanged(BR.name)
}
}