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