hrefLang method

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

Hints at the human language of the linked URL. Read more...

Implementation

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