getOrDefault

abstract suspend fun <T> getOrDefault(propertyId: String, defaultValue: Property<T>): Property<T>(source)

Retrieves a property by id, or returns a default if not found.

Return

the property with the given id, or defaultValue if not found

Parameters

propertyId

the id of the property to retrieve

defaultValue

the default property to return if the id property is not found