# addItem method Null safety

1. @override

PresentationModel addItem(

1. PresentationModel model,
2. BodyComponentModel newItem

)
override

## Implementation

    @override
    PresentationModel addItem(
        PresentationModel model, BodyComponentModel newItem) {
      List<BodyComponentModel> newItems = model.bodyComponents == null
          ? []
          : model.bodyComponents!.map((e) => e).toList();
      newItems.add(newItem);
      var newModel = model.copyWith(bodyComponents: newItems);
      return newModel;
    }