evaluate method
Implementation
@override
MatcherEvaluation evaluate(PartialUri uri) {
if (isOptional && uri.scheme.isEmpty) {
return MatcherEvaluation.match(remainingUri: uri);
}
final match = scheme.matchAsPrefix(uri.scheme);
if (match == null || match.end != uri.scheme.length) {
return MatcherEvaluation.noMatcher();
}
return MatcherEvaluation.match(
remainingUri: uri.copyWith(removeScheme: true),
);
}