visitAncestorElements abstract method
Walks the ancestor chain, starting with the parent of this build context's widget, invoking the argument for each ancestor. The callback is given a reference to the ancestor widget's corresponding Element object. The walk stops when it reaches the root widget or when the callback returns false.
Implementation
void visitAncestorElements(RenderElementVisitor visitor);