link method

Link? link(
  1. LicenseRel rel, {
  2. MediaType? type,
})

Returns the first link containing the given rel.

  • Parameter rel: The rel to look for.
  • Returns: The first link containing the rel.

Implementation

Link? link(LicenseRel rel, {MediaType? type}) =>
    _links.firstWithRel(rel.val, type: type);