changeParent method
Changes the current parent for another parent and prepares the tree under the new root.
Implementation
void changeParent(Component newParent) {
newParent.lifecycle._adoption.add(this);
_mountCompleter = null;
}
Changes the current parent for another parent and prepares the tree under the new root.
void changeParent(Component newParent) {
newParent.lifecycle._adoption.add(this);
_mountCompleter = null;
}