download method

A download([
  1. String? filename
])

Implementation

A download([String? filename]) {
  if (filename != null) {
    attr('download', StringAttribute(filename));
  } else {
    attr('download', BooleanAttribute(true));
  }
  return this;
}