download method

Future<void> download(
  1. File file, {
  2. String? name,
  3. bool inline = false,
  4. String? contentType,
})

Sends a file download response.

Implementation

Future<void> download(
  File file, {
  String? name,
  bool inline = false,
  String? contentType,
}) async {
  await _body.download(
    file,
    name: name,
    inline: inline,
    contentType: contentType,
  );
  _sent = true;
}