PropertyDescriptor
object PropertyDescriptor
Utility object for creating property accessors from various sources. Provides factory methods to convert static values, read-only properties, and mutable properties into PropertyGetter and PropertySetter implementations.
This object serves as the main entry point for creating property accessors in a consistent way.
Functions
Link copied to clipboard
Converts a static value into a PropertyGetter that always returns the same value. Useful for creating property accessors for constant or computed values.
Converts a Kotlin read-only property into a PropertyGetter. The resulting getter will access the property value from the target object.
Link copied to clipboard
Converts a Kotlin mutable property into a PropertySetter. The resulting setter will modify the property value on the target object.