rebuild method
Rebuilds the element.
Implementation
@override
void rebuild() {
final win = widget as Window;
if (childElement != null &&
Widget.canUpdate(childElement!.widget, win.child)) {
childElement!.update(win.child);
} else {
childElement?.unmount();
childElement = win.child.createElement();
childElement!.mount(this);
}
}