detachRenderObject method

void detachRenderObject()

Detaches the render objects at the top of this subtree from the ancestor render object. The default walks down through child elements; RenderObjectElement overrides it to detach its own render object and stop (the subtree below that render object travels with it).

Implementation

void detachRenderObject() {
  visitChildren((c) => c.detachRenderObject());
}