CopyItem method

Future<Item?> CopyItem(
  1. ItemId? itemId,
  2. FolderId? destinationFolderId
)
Copies an item. Calling this method results in a call to EWS. The Id of the item to copy. The Id of the folder to copy the item to.

Implementation

Future<Item?> CopyItem(ItemId? itemId, FolderId? destinationFolderId) async {
  return (await InternalCopyItems(
    [itemId],
    destinationFolderId,
    null,
    ServiceErrorHandling.ThrowOnError,
  ))[0].Item;
}