rel method

Link rel(
  1. List<String> typeList, {
  2. bool? removeIf,
})

This attribute names a relationship of the linked document to the current document. Read more...

Implementation

Link rel(List<String> typeList, {bool? removeIf}) {
  if (removeIf != true && node.attrs != null) {
    VirtualAttr attr = VirtualAttr('rel', _html.listToSpaces(typeList));
    node.attrs!.add(attr);
  }
  return this;
}