DslProperty

interface DslProperty<T>

A DSL property backed by a Provider. Can be set to a static value or bound to a reactive Provider using the by infix function.

// static value
stringValue by "abc"

// reactive provider
stringValue by myStringProvider

Inheritors

Functions

Link copied to clipboard
open infix fun by(value: T)

Sets this property to a static value.

abstract infix fun by(provider: Provider<T>)

Binds this property to a reactive Provider. The property will update automatically when the provider's value changes.

Link copied to clipboard
@JvmName(name = "listByValue")
infix fun <T : Any> DslProperty<in List<T>>.by(value: T)

Sets this List property to a single value.

@JvmName(name = "listByValueProvider")
infix fun <T : Any> DslProperty<in List<T>>.by(value: Provider<T>)

Sets this List property to a provider of a single value.

@JvmName(name = "setByValue")
infix fun <T : Any> DslProperty<in Set<T>>.by(value: T)

Sets this Set property to a single value.

@JvmName(name = "setByValueProvider")
infix fun <T : Any> DslProperty<in Set<T>>.by(value: Provider<T>)

Sets this Set property to a provider of a single value.