Set type for deletedIDs

This commit is contained in:
Vishnu 2021-06-14 02:08:26 +05:30
parent 6861d0a399
commit 3bf844f834

View file

@ -33,7 +33,7 @@ Future<void> deleteFilesFromEverywhere(
}
}
}
var deletedIDs;
Set<String> deletedIDs = Set<String>();
try {
deletedIDs = (await PhotoManager.editor.deleteWithIds(localIDs)).toSet();
} catch (e, s) {
@ -112,7 +112,7 @@ Future<void> deleteFilesOnDeviceOnly(
}
}
}
var deletedIDs;
Set<String> deletedIDs = Set<String>();
try {
deletedIDs = (await PhotoManager.editor.deleteWithIds(localIDs)).toSet();
} catch (e, s) {