containing method

PatrolFinder containing(
  1. dynamic matching
)

Returns PatrolFinder that this method was called on and which contains matching as a descendant.

Implementation

PatrolFinder containing(dynamic matching) {
  return PatrolFinder(
    tester: tester,
    finder: find.ancestor(of: createFinder(matching), matching: finder),
  );
}