imageSrcSet method

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

The imagesrcset attribute is a sourceset attribute that indicates to preload the appropriate resource used by an img element. Read more...

Implementation

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