asPropertyOrNull

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

Returns the node property of the reified type C, or null if the node does not have a compatible property.

Receiver

the node from which to retrieve the property.

Return

the property of type C if present, or null otherwise.