alt method

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

A text alternative to display on browsers that do not display images. Read more...

Implementation

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