FunctionalComponentStateProperty

class FunctionalComponentStateProperty<P>(val component: Component<*>, val initial: P, type: KType) : ObservableProperty<P>

Constructors

Link copied to clipboard
fun <P> FunctionalComponentStateProperty(component: Component<*>, initial: P, type: KType)

Functions

Link copied to clipboard
open operator override fun getValue(thisRef: Any?, property: KProperty<*>): P
Link copied to clipboard
fun initLazy(block: suspend () -> Flow<P>): FunctionalComponentStateProperty<P>

Adds a callback that will initialize the property when it is accessed for the first time.

Link copied to clipboard

Adds a callback that will be called whenever the value has changed

Link copied to clipboard
open operator override fun setValue(thisRef: Any?, property: KProperty<*>, value: P)

Properties

Link copied to clipboard
Link copied to clipboard
val initial: P