removeRenderObjectChild method

  1. @override
void removeRenderObjectChild(
  1. covariant RenderObject child,
  2. covariant Object? slot
)
override

Remove the given child from renderObject.

The given child is guaranteed to have been inserted at the given slot and have renderObject as its parent.

Implementation

@override
void removeRenderObjectChild(RenderObject child, Object? slot) {
  final ContainerRenderObjectMixin<RenderObject, ContainerParentDataMixin<RenderObject>> renderObject = this.renderObject;
  assert(child.parent == renderObject);
  renderObject.remove(child);
  assert(renderObject == this.renderObject);
}