addItem method
Implementation
@override
DocumentModel addItem(DocumentModel model, DocumentItemModel newItem) {
List<DocumentItemModel> newItems =
model.images == null ? [] : model.images!;
newItems.add(newItem);
var newModel = model.copyWith(images: newItems);
return newModel;
}