Returns true if uri is matched by this pattern.
true
uri
bool matches(Uri uri) => match(uri) != null;