matches method

  1. @override
bool matches(
  1. RequestOptions ongoingRequest,
  2. Request matcher
)
override

Implementation

@override
bool matches(RequestOptions ongoingRequest, Request matcher) {
  final isTheSameRoute =
      ongoingRequest.doesRouteMatch(ongoingRequest.path, matcher.route);
  return isTheSameRoute &&
      (!matchMethod || ongoingRequest.method == matcher.method?.name);
}