alt method

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

Alt attribute for the image type. Read more...

Implementation

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