hasNextSibling property

bool get hasNextSibling

Whether or not this node is the last child of its parent.

If this method throws, the tree was malformed.

Implementation

bool get hasNextSibling => isRoot ? false : this != parent!.lastChild;