removeRenderObjectChild method Null safety

  1. @override
void removeRenderObjectChild(
  1. covariant RenderObject child,
  2. covariant int slot

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.


void removeRenderObjectChild(RenderObject child, int slot) {
  assert(child.parent == renderObject);
  renderObject.remove(child as RenderBox);