root property

Node get root
override

Getter to get the root node. If the current node is not a root, then the getter will traverse up the path to get the root.

Implementation

Node get root => super.root as Node;