|
|
|
|
|
|
RenderObjectToWidgetElement<RenderBox> _renderViewElement; |
|
|
|
|
|
|
|
public void detachRootWidget() { |
|
|
|
this.pipelineOwner.rootNode = null; |
|
|
|
|
|
|
|
void unMountAll(Element element) { |
|
|
|
element.visitChildren(unMountAll); |
|
|
|
element.deactivate(); |
|
|
|
element.unmount(); |
|
|
|
} |
|
|
|
|
|
|
|
if (this._renderViewElement != null) { |
|
|
|
this._renderViewElement.visitChildren(unMountAll); |
|
|
|
this._renderViewElement.deactivate(); |
|
|
|
this._renderViewElement.unmount(); |
|
|
|
this._renderViewElement = null; |
|
|
|
if (this._renderViewElement == null) { |
|
|
|
return; |
|
|
|
|
|
|
|
this.attachRootWidget(null); |
|
|
|
this.buildOwner.buildScope(this._renderViewElement); |
|
|
|
this.buildOwner.finalizeTree(); |
|
|
|
|
|
|
|
this.pipelineOwner.rootNode = null; |
|
|
|
this._renderViewElement.deactivate(); |
|
|
|
this._renderViewElement.unmount(); |
|
|
|
this._renderViewElement = null; |
|
|
|
} |
|
|
|
|
|
|
|
public void attachRootWidget(Widget rootWidget) { |
|
|
|