root property

Node<Object?> get root

The root node of the entire document.

Implementation

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