hasObject

abstract fun hasObject(includeNested: Boolean = true, predicate: (KoObjectDeclaration) -> Boolean): Boolean

Determines whether the declaration has at least one object that satisfies the provided predicate.

Return

true if there is a matching declaration, false otherwise.

Parameters

includeNested

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

predicate

An object that defines the condition to be met by a object declaration.