MoveItem method

Future<Item?> MoveItem(
  1. ItemId? itemId,
  2. FolderId? destinationFolderId
)
Move an item. The Id of the item to move. The Id of the folder to move the item to.

Implementation

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