width method

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

Same as width attribute for <img>. Read more...

Implementation

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