matchesUri function
Matcher
matchesUri({})
Matches the individual parts of a Uri. If a matcher is not specified for a
part, the default matcher is anything
. This allows you to just match on a
single part, like the scheme, while ignoring the rest.
Implementation
Matcher matchesUri({
Object? fragment = anything,
Object? host = anything,
Object? path = anything,
Object? port = anything,
Object? queryParameters = anything,
Object? scheme = anything,
Object? userInfo = anything,
}) =>
isA<Uri>()
.having((e) => e.fragment, 'fragment', fragment)
.having((e) => e.host, 'host', host)
.having((e) => e.path, 'path', path)
.having((e) => e.port, 'port', port);