findRequest method

RequestVerification? findRequest(
  1. String path, {
  2. HttpMethod? 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,
      );
}