addProperty
fun addProperty(propertyName: String, value: Any? = definedExternally, createPropertyCallback: Function<*>? = definedExternally)(source)
Adds a property to this object.
Parameters
propertyName
The name of the property to add.
value
The value of the new property, if provided.
createPropertyCallback
A function that will be called when the value of this new property is set to a value that is not a Property.