deleteChild method

void deleteChild(
  1. RenderNode node, {
  2. bool needRemoveChild = true,
})

Implementation

void deleteChild(RenderNode node, {bool needRemoveChild = true}) {
  if (_children.contains(node)) {
    if (needRemoveChild) {
      node.deleteAllChild();
    }
    _children.remove(node);
    _root.unregisterNode(node);
  }
}