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