populatePartial method
Replaces a partial element's children with element's.
Implementation
void populatePartial(TreeElement element) {
if (!_isPartial) return;
_children.clear();
for (final child in element._children) {
addChild(child);
}
_isPartial = false;
}