removeRootRenderObjectChild method

void removeRootRenderObjectChild(
  1. RenderObject child
)

Remove a top-level render child from the attached root render object.

Implementation

void removeRootRenderObjectChild(RenderObject child) {
  final root = _rootRenderObject;
  if (root != null && identical(child.parent, root)) {
    root.setChild(null);
  }
}