parentId property

int get parentId

Optional. The id of the parent node if any.

Implementation

int get parentId {
  if (referencedNode.parentNode != null) {
    return referencedNode.parentNode!.targetId;
  } else {
    return 0;
  }
}