asPropertyOrNull

inline fun <T, C : NodeProperty<T>> Node<T>.asPropertyOrNull(): C?

returns a NodeProperty of the provided type C or null if the node does not have a compatible property.

Return

if present, a capability of the provided type C

Parameters

C

type of capability