deleteItem method
Implementation
@override
AlbumModel deleteItem(AlbumModel model, AlbumEntryModel deleteItem) {
var newItems = <AlbumEntryModel>[];
if (model.albumEntries != null) {
for (var item in model.albumEntries!) {
if (item != deleteItem) {
newItems.add(item);
}
}
}
var newModel = model.copyWith(albumEntries: newItems);
return newModel;
}