findMatch method

CharlatanResponseDefinition? findMatch(
  1. CharlatanHttpRequest request
)

Returns the first fake response definition that matches the provided request.

Implementation

CharlatanResponseDefinition? findMatch(CharlatanHttpRequest request) {
  return _matchers.firstWhereOrNull((matcher) => matcher.matches(request));
}