match method
Implementation
PathMatch match(Uri uri) {
var segments = uri.pathSegments;
if (segments.length != fragments.length) return PathMatch(false, {});
var data = <String, String>{};
for (var i = 0; i < fragments.length; i++) {
if (!fragments[i].match(segments[i], data)) {
return PathMatch(false, data);
}
}
return PathMatch(true, data);
}