hasAllProperties

abstract fun hasAllProperties(includeNested: Boolean = true, predicate: (KoPropertyDeclaration) -> Boolean): Boolean

Determines whether the declaration has all properties that satisfy the provided predicate.

Note that if the properties contains no elements, the function returns true because there are no elements in it that do not match the predicate.

Return

true if all property declarations satisfy the predicate, false otherwise.

Parameters

includeNested

Specifies whether to include nested properties in the check (optional, default is true).

predicate

A function that defines the condition to be met by property declarations.