download method

Area download(
  1. bool boolean
)

This attribute, if present, indicates that the author intends the hyperlink to be used for downloading a resource. Read more...

Implementation

Area download(bool boolean) {
  if (boolean && node.attrs != null) {
    VirtualAttr attr = VirtualAttr('download', '');
    node.attrs!.add(attr);
  }
  return this;
}