data method

Object data(
  1. String url, {
  2. bool? removeIf,
})

The address of the resource as a valid URL. Read more...

Implementation

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