countProperties

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

Returns the number of properties that satisfies the specified predicate present in the declaration.

Return

The number of properties in the declaration.

Parameters

includeNested

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

predicate

The predicate function to determine if a property satisfies a condition.