removeChild method

  1. @override
  2. @mustCallSuper
Node removeChild(
  1. Node child
)
inherited

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;
}