findRequest method
Implementation
RequestVerification? findRequest(String path, {HttpMethod? method}) {
return _requests.cast<RequestVerification?>().firstWhere(
(req) => req!.path.contains(path) && (method == null || req.method == method),
orElse: () => null,
);
}