property

fun property(property: Property<*>)(source)

Attaches a pre-built custom property to this feature.

If a property with the same name already exists, it will be replaced.

Parameters

property

the property to attach


fun <T> property(name: String, block: PropertyBuilder<T>.() -> Unit)(source)

Defines and attaches a custom property using a property DSL block.

Parameters

name

the unique name of the property

block

DSL block used to configure the property

T

the property's value type