alt method

Img alt(
  1. String text, {
  2. bool? removeIf,
})

Defines an alternative text description of the image. Read more...

Implementation

Img alt(String text, {bool? removeIf}) {
  if (removeIf != true && node.attrs != null) {
    VirtualAttr attr = VirtualAttr('alt', text);
    node.attrs!.add(attr);
  }
  return this;
}