collection method

Iterable<Link> collection({
  1. String? type,
  2. String? hreflang,
})

All links with rel matching collection.

IANA description: "The target IRI points to a resource which represents the collection resource for the context IRI".

Optional type and hreflang params can specify links more precisely.

Implementation

Iterable<Link> collection({String? type, String? hreflang}) =>
    byRel('collection', type: type, hreflang: hreflang);