findTopLevelPart method

Part findTopLevelPart()

Gets the top-level Part for this part, which is itself when #isTopLevel is true. If this Part is a member of a Group, this returns the top-level Part for that Group. If this is a Node that is a label node for a labeled Link, this returns the top-level Part for that Link.

If this is a Node and you are searching for the root of the tree that this node is in, use Node#findTreeRoot. @return {Part} This will not return null. @since 1.1

Implementation

_i3.Part findTopLevelPart() => _i4.callMethod(
      this,
      'findTopLevelPart',
      [],
    );