has Property
abstract fun hasProperty(includeNested: Boolean = true, predicate: (KoPropertyDeclaration) -> Boolean): Boolean
Determines whether the declaration has at least one property that satisfies the provided predicate.
Return
true if there is a matching declaration, false otherwise.
Parameters
include Nested
Specifies whether to include nested properties in the check (optional, default is true).
predicate
A function that defines the condition to be met by a property declaration.