visitRenderObjectDescendants function
Implementation
bool visitRenderObjectDescendants(RenderObject renderObject, bool Function(RenderObject child) visitor) {
bool stop = false;
renderObject.visitChildren((child) {
if (!stop) {
stop = visitor(child);
if (!stop)
stop = visitRenderObjectDescendants(child, visitor);
}
});
return stop;
}