visitChildren method
Calls the argument for each child.
There is no guaranteed order in which the children will be visited, though it should be consistent over time.
Calling this during build is dangerous: the child list might still be being updated at that point, so the children might not be constructed yet, or might be old children that are going to be replaced. This method should only be called if it is provable that the children are available.
Implementation
@override
void visitChildren(ElementVisitor visitor) {
for (var child in _children ?? []) {
if (!_forgottenChildren.contains(child)) {
visitor(child);
}
}
}