findStylableProperty

expect fun findStylableProperty(node: Any, valueType: KClass<*>, propertyName: String, selector: Selector): StylableProperty<*>?
actual fun findStylableProperty(node: Any, valueType: KClass<*>, propertyName: String, selector: Selector): StylableProperty<*>?

Looks for a method with this signature : get{PropertyName}Property() : StylableProperty<*> If one is found, invokes the method, and returns the value. Otherwise, return null.

Note, node is of type Any, because it could also be used to style other objects e.g. For Scene, to set Scene.backgroundColor (which is a StylableProperty).

actual fun findStylableProperty(node: Any, valueType: KClass<*>, propertyName: String, selector: Selector): StylableProperty<*>?

Looks for a method with this signature : get{PropertyName}Property() : StylableProperty<*> If one is found, invokes the method, and returns the value. Otherwise, return null.

Note, node is of type Any, because it could also be used to style other objects e.g. For Scene, to set Scene.backgroundColor (which is a StylableProperty).