willDetachRenderer method
A render object previously associated with this Node will be / has been removed from the tree. The given RenderObject will be of the same type as returned by this object's createRenderer.
Implementation
@override
void willDetachRenderer() {
super.willDetachRenderer();
// Cancel running transition.
renderStyle.cancelRunningTransition();
RenderBoxModel _renderBoxModel = renderBoxModel!;
// Remove all intersection change listeners.
_renderBoxModel.clearIntersectionChangeListeners();
// Remove fixed children from root when element disposed.
_removeFixedChild(_renderBoxModel, ownerDocument.documentElement!._renderLayoutBox!);
// Remove renderBox.
_renderBoxModel.detachFromContainingBlock();
// Clear pointer listener
clearEventResponder(renderBoxModel!);
}