downloadAttachment static method
Implementation
static Future<void> downloadAttachment(Attachment? attachment) async {
if (attachment == null) return;
String? content = await readAttachmentContent(attachment.id);
if (content == null) return;
FileService.saveToDownloads(
content, attachment.fileName, attachment.extension);
}