removeChild method
Implementation
@override
@mustCallSuper
Node removeChild(Node child) {
// Not remove node type which is not present in RenderObject tree such as Comment
// Only append node types which is visible in RenderObject tree
// Only remove childNode when it has parent
if (child.isRendererAttached) {
child.detach();
}
super.removeChild(child);
return child;
}