debugVisitOnstageChildren method Null safety
- ElementVisitor visitor
Calls the argument for each child considered onstage.
Classes like Offstage and Overlay override this method to hide their children.
Being onstage affects the element's discoverability during testing when you use Flutter's Finder objects. For example, when you instruct the test framework to tap on a widget, by default the finder will look for onstage elements and ignore the offstage ones.
The default implementation defers to visitChildren and therefore treats the element as onstage.
- Offstage widget that hides its children.
- Finder that skips offstage widgets by default.
- RenderObject.visitChildrenForSemantics, in contrast to this method, designed specifically for excluding parts of the UI from the semantics tree.
void debugVisitOnstageChildren(ElementVisitor visitor) => visitChildren(visitor);