asPropertyOrNull
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
returns a NodeProperty of the provided type C or null if the node does not have a compatible property.
if present, a capability of the provided type C
type of capability