setChild method
Replace this object's single render child.
Reassigning the current child is a no-op.
Implementation
@override
void setChild(RenderObject? child) {
if (child != null && child is! RenderBox) {
throw ArgumentError(
'RenderProxyBox children must be RenderBox, got ${child.runtimeType}',
);
}
setSingleRenderObjectChild(this, child);
}