canonical method

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

All links with rel matching canonical.

IANA description: "Designates the preferred version of a resource (the IRI and its contents)".

Optional type and hreflang params can specify links more precisely.

Implementation

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