toReplaced method
Implementation
RenderReplaced toReplaced() {
RenderObject? childRenderObject = child;
child = null;
RenderReplaced newChild = RenderReplaced(renderStyle);
newChild.child = childRenderObject as RenderBox?;
return copyWith(newChild);
}