dropChild method
- RenderObject child
Called by subclasses when they decide a render object is no longer a child.
Only for use by subclasses when changing their child lists. Calling this in other cases will lead to an inconsistent tree and probably cause crashes.
Implementation
@mustCallSuper
@protected
void dropChild(RenderObject child) {
assert(child._parent == this);
assert(child.attached == attached);
assert(child.parentData != null);
_cleanChildRelayoutBoundary(child);
child.parentData!.detach();
child.parentData = null;
child._parent = null;
if (attached) {
child.detach();
}
markNeedsLayout();
markNeedsCompositingBitsUpdate();
markNeedsSemanticsUpdate();
}