dropChild method
- PipelineOwner child
Removes a child PipelineOwner previously added via adoptChild.
This node will cease to call the flush methods on the child
during frame
production.
No children may be removed after the PipelineOwner has started calling flushLayout on any of its children until the end of the current frame.
Implementation
void dropChild(PipelineOwner child) {
assert(child._debugParent == this);
assert(_children.contains(child));
assert(_debugAllowChildListModifications, 'Cannot modify child list after layout.');
_children.remove(child);
if (!kReleaseMode) {
_debugSetParent(child, null);
}
if (_manifold != null) {
child.detach();
}
}