detachAll method
Implementation
void detachAll(Iterable<RenderObject> detachedChildren) {
final detachedSet = detachedChildren is Set<RenderObject>
? detachedChildren
: detachedChildren.toSet();
if (detachedSet.isEmpty) return;
children.removeWhere(detachedSet.contains);
for (final child in detachedSet) {
if (identical(child.parent, this)) {
child.parent = null;
}
}
}