DownloadAttachmentExtensions extension
Extensions for downloading attachment
- on
-
- IAttachment
Methods
-
downloadAsBytes(
) → Future< Uint8List> - Downloads attachment as returns bytes of downloaded file.
-
downloadAsFile(
File file) → Future< File> -
Downloads
Attachment
and saves to givenfile
. Returns modified file