Companion

object Companion

Utilities for Nodes.

Functions

Link copied to clipboard
inline fun <T, C : NodeProperty<T>> Node<T>.asProperty(): C

Returns the node property of the reified type C.

Link copied to clipboard
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.