requireIfValue

fun <U> requireIfValue(target: KProperty<*>, ref: KProperty<U>, predicate: (U?) -> Boolean): DomainBuilder(source)

Requires the target property to be present when the specified property matches the given predicate and this domain is active.