url method

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

Implementation

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

  return l.urlWithParams(parameters: parameters);
}