removeRenderObjectChild method

  1. @override
void removeRenderObjectChild(
  1. covariant RenderObject child,
  2. covariant dynamic 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(covariant RenderObject child, dynamic slot) {
  if (child == renderObject.minProtoType) {
    renderObject.minProtoType = null;
  } else if (child == renderObject.maxProtoType) {
    renderObject.maxProtoType = null;
  } else {
    renderObject.child = null;
  }
}