root property

NodeV2 get root

Implementation

NodeV2 get root {
  NodeV2 k = this;

  while (k.parent != null) {
    k = k.parent!;
  }

  return k;
}