ancestors property
inherited
An Iterable over the ancestors of this node.
Iterates the ancestors of this node starting at the parent and iterating
over successively more remote ancestors of this node, ending at the root
FocusScope
(FocusManager.rootScope
).
Implementation
Iterable<FocusNode> get ancestors sync* {
FocusNode parent = _parent;
while (parent != null) {
yield parent;
parent = parent._parent;
}
}