renderProperty

inline fun <T> renderProperty(initial: T, noinline onChange: View.(old: T, new: T) -> Unit = { _,_ -> }): ReadWriteProperty<View, T>

Delegate for properties that should trigger View.rerender when changed.

Parameters

initial

value of the property

onChange

called when the property changes. There's no need to call rerender in onChange.