matchesUri function

Matcher matchesUri({
  1. Object? fragment = anything,
  2. Object? host = anything,
  3. Object? path = anything,
  4. Object? port = anything,
  5. Object? queryParameters = anything,
  6. Object? scheme = anything,
  7. Object? userInfo = anything,
})

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);