sizes method

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

A list of source sizes that describes the final rendered width of the image represented by the source. Read more...

Implementation

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