adoptChild method
Add a child to this render object
Implementation
@override
void adoptChild(RenderObject child) {
final current = _singleRenderObjectChild(this);
if (current != null && !identical(current, child)) {
throw StateError(
'$runtimeType already has a different single render child.',
);
}
setChild(child);
}