parentId property

int get parentId

Optional. The id of the parent node if any.

Implementation

int get parentId {
  if (referencedNode.parentNode != null) {
    return referencedNode.ownerDocument.controller.view.getTargetIdByEventTarget(referencedNode.parentNode!) ?? 0;
  } else {
    return 0;
  }
}