root property

Node<Object?> root

The root node of the entire document.

Implementation

Node get root => parent?.root ?? this;