rename Element.visitChildrenForSemantics to visitOnstageChildren; fix DropdownButton (#11744)
* rename Element.visitChildrenForSemantics to debugVisitOnstageChildren * address comments
This commit is contained in:
@@ -51,7 +51,7 @@ class _DepthFirstChildIterator implements Iterator<Element> {
|
||||
assert(element != null);
|
||||
final List<Element> children = <Element>[];
|
||||
if (skipOffstage) {
|
||||
element.visitChildrenForSemantics(children.add);
|
||||
element.debugVisitOnstageChildren(children.add);
|
||||
} else {
|
||||
element.visitChildren(children.add);
|
||||
}
|
||||
|
||||
@@ -232,7 +232,7 @@ abstract class Finder {
|
||||
/// Whether this finder skips nodes that are offstage.
|
||||
///
|
||||
/// If this is true, then the elements are walked using
|
||||
/// [Element.visitChildrenForSemantics]. This skips offstage children of
|
||||
/// [Element.debugVisitOnstageChildren]. This skips offstage children of
|
||||
/// [Offstage] widgets, as well as children of inactive [Route]s.
|
||||
final bool skipOffstage;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user