root property

ListenableNode 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

ListenableNode get root => super.root as ListenableNode;