href method

Base href(
  1. String url, {
  2. bool? removeIf,
})

The base URL to be used throughout the document for relative URLs. Read more...

Implementation

Base href(String url, {bool? removeIf}) {
  if (removeIf != true && node.attrs != null) {
    VirtualAttr attr = VirtualAttr('href', url);
    node.attrs!.add(attr);
  }
  return this;
}