articleDeleteImageFromGallery function
Implementation
Future<String?> articleDeleteImageFromGallery(ImageData item)async {
try{
if (item.serverPath.startsWith("https://firebasestorage.googleapis.com"))
await dbFileDeleteServerPath(item.serverPath);
// await FirebaseStorage.instance.refFromURL(item.serverPath).delete();
currentArticle.gallery.remove(item);
} catch (ex) {
return "articleDeleteImageFromGallery " + ex.toString();
}
return null;
}