updateParentCache method
Manually update the parent cache for a newly inserted node/fragment.
Implementation
void updateParentCache(String childId, String? parentId) {
if (parentId == null) {
_parentCache.remove(childId);
} else {
_parentCache[childId] = parentId;
}
}