PropertyObserver

typealias PropertyObserver<S, T> = (source: S, old: T, new: T) -> Unit

Handler for changes to some property of a source.

Parameters

source

the item that changed

old

the previous value of the property

new

the updated value of the property