removeAssetsInAlbum method
Remove list
's items from path
in batches.
Implementation
Future<bool> removeAssetsInAlbum(
List<AssetEntity> list,
AssetPathEntity path,
) async {
if (list.isEmpty) {
return false;
}
if (path.albumType == 2 || path.isAll) {
assert(path.albumType == 1, "The path must is album");
assert(
!path.isAll,
"The ${path.name} can't be remove. Use PhotoManager.editor.deleteAsset",
);
return false;
}
return _plugin.iosRemoveInAlbum(list, path);
}