firstWithRel method

Link? firstWithRel(
  1. String rel, {
  2. MediaType? type,
})

Implementation

Link? firstWithRel(String rel, {MediaType? type}) =>
    links.firstWhereOrNull((it) => it.matches(rel, type));