findLink static method

Link? findLink(
  1. List<Link> links,
  2. LicenseRel rel
)

Implementation

static Link? findLink(List<Link> links, LicenseRel rel) =>
    links.firstWhereOrNull((element) => element.rel.contains(rel.val));