inline fun <reified T> Provider.observable(initialValue: T, noinline onChange: () -> Unit = null): Writable<T>
Defines an observable property.
public var message: String? by observable(null) {
messageChanges++
}public var rotating: Boolean by observable(false)
initialValue - inital value of the property
onChange - code to invoke whenever the value of the property changes