changeParent method
Changes the current parent for another parent and prepares the tree under the new root.
Implementation
void changeParent(Component component) {
parent?.remove(this);
nextParent = component;
}
Changes the current parent for another parent and prepares the tree under the new root.
void changeParent(Component component) {
parent?.remove(this);
nextParent = component;
}