asPropertyOrNull
open fun <C : NodeProperty<T>> asPropertyOrNull(superType: Class<in C>): C?
Content copied to clipboard
open fun <C : NodeProperty<T>> asPropertyOrNull(superType: KClass<in C>): C?
Content copied to clipboard
returns a NodeProperty of the provided superType.
Return
a capability of the provided type C
Parameters
C
type of capability
superType
the type of capability to retrieve