hrefLang method

Link hrefLang(
  1. String langCode, {
  2. bool? removeIf,
})

This attribute indicates the language of the linked resource. Read more...

Implementation

Link hrefLang(String langCode, {bool? removeIf}) {
  if (removeIf != true && node.attrs != null) {
    VirtualAttr attr = VirtualAttr('hreflang', langCode);
    node.attrs!.add(attr);
  }
  return this;
}