rebuild method
Rebuilds the element.
Implementation
@override
void rebuild() {
final split = widget as SplitPane;
if (childElement1 != null &&
Widget.canUpdate(childElement1!.widget, split.child1)) {
childElement1!.update(split.child1);
} else {
childElement1?.unmount();
childElement1 = split.child1.createElement();
childElement1!.mount(this);
}
if (childElement2 != null &&
Widget.canUpdate(childElement2!.widget, split.child2)) {
childElement2!.update(split.child2);
} else {
childElement2?.unmount();
childElement2 = split.child2.createElement();
childElement2!.mount(this);
}
}