clearRootRenderObject method
Clear the attached root render object without disposing render resources.
Implementation
void clearRootRenderObject(RenderObjectWithSingleChild root) {
if (!identical(_rootRenderObject, root)) {
return;
}
root.setChild(null);
_rootRenderObject = null;
_pointerRouter.root = null;
}