srcSet method

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

Indicating a set of possible images represented by the source for the browser to use. Read more...

Implementation

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