ancestor method

FinderBase<SemanticsNode> ancestor({
  1. required FinderBase<SemanticsNode> of,
  2. required FinderBase<SemanticsNode> matching,
  3. 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);
}