url method

Uri url(
  1. LicenseRel rel, {
  2. MediaType? preferredType,
  3. Map<String, String> parameters = const {},
})

Implementation

Uri url(LicenseRel rel,
    {MediaType? preferredType, Map<String, String> parameters = const {}}) {
  Link? l =
      link(rel, type: preferredType) ?? _links.firstWithRelAndNoType(rel.val);
  if (l == null) {
    throw LcpException.parsing.url(rel.val);
  }

  return l.urlWithParams(parameters: parameters);
}