width method

Img width(
  1. int pixels, {
  2. bool? removeIf,
})

The intrinsic width of the image in pixels. Read more...

Implementation

Img width(int pixels, {bool? removeIf}) {
  if (removeIf != true && node.attrs != null) {
    VirtualAttr attr = VirtualAttr('width', pixels.toString());
    node.attrs!.add(attr);
  }
  return this;
}