observableStyleProperty
fun <T> observableStyleProperty(initial: T, filter: (View) -> Boolean = { true }, onChanged: (old: T, new: T) -> Unit = { _,_ -> }): ReadWriteProperty<View, T>
Delegate for properties that should trigger View.styleChanged when changed.
Parameters
initial
value of the property
filter
passed to View.styleChanged when it is called
onChanged
called whenever the property changes