setDownload method
Set the appropriate headers to download the file
Implementation
void setDownload({required String filename}) {
headers.add('Content-Disposition', 'attachment; filename=$filename');
}
Set the appropriate headers to download the file
void setDownload({required String filename}) {
headers.add('Content-Disposition', 'attachment; filename=$filename');
}