# deleteItem method Null safety

1. @override

TutorialModel deleteItem(

1. TutorialModel model,
2. TutorialEntryModel deleteItem

)
override

## Implementation

    @override
    TutorialModel deleteItem(TutorialModel model, TutorialEntryModel deleteItem) {
      var newItems = <TutorialEntryModel>[];
      if (model.tutorialEntries != null) {
        for (var item in model.tutorialEntries!) {
          if (item != deleteItem) {
            newItems.add(item);
          }
        }
      }
      var newModel = model.copyWith(tutorialEntries: newItems);
      return newModel;
    }