moveItem method

Future<ItemResponse> moveItem(
  1. String kref,
  2. String targetSpacePath, {
  3. String? deletionGuardId,
})
inherited

Moves an Item to a Space in another Project without changing its kref.

Implementation

Future<ItemResponse> moveItem(
  String kref,
  String targetSpacePath, {
  String? deletionGuardId,
}) {
  final options =
      deletionGuardId == null || deletionGuardId.isEmpty
          ? callOptions
          : callOptions.mergedWith(
            CallOptions(
              metadata: {'x-kumiho-deletion-guard': deletionGuardId},
            ),
          );
  return stub.moveItem(
    MoveItemRequest()
      ..itemKref = kref
      ..targetSpacePath = targetSpacePath,
    options: options,
  );
}