alternate method

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

All links with rel matching alternate.

IANA description: "Refers to a substitute for this context".

OGC API - Common Part 1 (Core): "Refers to a representation of the current resource that is encoded using another media type (the media type is specified in the type link attribute)."

Optional type and hreflang params can specify links more precisely.

Implementation

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