DownloadAttachmentExtensions extension

Extensions for downloading attachment

on
  • Attachment

Methods

downloadAsBytes() Future<Uint8List>

Available on Attachment, provided by the DownloadAttachmentExtensions extension

Downloads attachment as returns bytes of downloaded file.
downloadAsFile(File file) Future<File>

Available on Attachment, provided by the DownloadAttachmentExtensions extension

Downloads Attachment and saves to given file. Returns modified file