Last active
September 22, 2020 03:09
-
-
Save adamcyber1/f098c4ace6b0ac105c18c2470da1a4e5 to your computer and use it in GitHub Desktop.
Doogle Grive delete file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void deleteFile(StorageItem item) async { | |
try { | |
await Amplify.Storage.remove( | |
key: item.key, | |
); | |
} catch (e) { | |
Alert( | |
context: context, | |
type: AlertType.error, | |
desc: "Error Deleting File: " + e.toString()).show(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment