addItem method
Implementation
@override
FeedMenuModel addItem(
FeedMenuModel model, LabelledBodyComponentModel newItem) {
List<LabelledBodyComponentModel> newItems =
model.bodyComponentsCurrentMember == null
? []
: model.bodyComponentsCurrentMember!.map((e) => e).toList();
newItems.add(newItem);
var newModel = model.copyWith(bodyComponentsCurrentMember: newItems);
return newModel;
}