ancestor method
- required FinderBase<
SemanticsNode> of, - required FinderBase<
SemanticsNode> matching, - bool matchRoot = false,
Finds an ancestor of of
that matches matching
.
If matchRoot
is true, then the results of of
are included in the
search and results.
Implementation
FinderBase<SemanticsNode> ancestor({
required FinderBase<SemanticsNode> of,
required FinderBase<SemanticsNode> matching,
bool matchRoot = false,
}) {
return _AncestorSemanticsFinder(of, matching, matchRoot);
}