RootItemId property

ItemId? get RootItemId
Gets Id of the root item for this item.

Implementation

ItemId? get RootItemId {
  if (IsAttachment && ParentAttachment!.Owner != null) {
    return ParentAttachment!.Owner!.RootItemId;
  } else {
    return Id;
  }
}