saveImage static method
Implementation
static Future<bool> saveImage(filePath) async {
final isPermission =
await PermissionHelper.checkPermission([Permission.storage]);
if (!isPermission) {
CommonHelper.showToast("Please enable related permissions");
return false;
}
final result = await ImageGallerySaver.saveFile(filePath);
if (!result) {
CommonHelper.showToast("Save fail");
return false;
}
CommonHelper.showToast("Save success");
return true;
}