DownloadAttachmentExtensions extension

Extensions for downloading attachment

on

Methods

downloadAsBytes() Future<Uint8List>
Downloads attachment as returns bytes of downloaded file.
downloadAsFile(File file) Future<File>
Downloads Attachment and saves to given file. Returns modified file