links method

List<Link> links(
  1. LicenseRel rel, {
  2. MediaType? type,
})

Returns all links containing the given rel.

  • Parameter rel: The rel to look for.
  • Returns: All links containing the rel.

Implementation

List<Link> links(LicenseRel rel, {MediaType? type}) =>
    _links.allWithRel(rel.val, type: type);