dropChild method

  1. @protected
void dropChild(
  1. RenderObject child
)

Detaches child from this render object.

Implementation

@protected
void dropChild(RenderObject child) {
  assert(child._parent == this, 'dropChild called on the wrong parent.');
  child.parentData?.detach();
  child.parentData = null;
  child._parent = null;
  markNeedsLayout();
}