moveTo method

Future<Item> moveTo(
  1. String targetSpacePath, {
  2. String? deletionGuardId,
})

Moves this Item to another Project's Space while preserving its kref.

Implementation

Future<Item> moveTo(String targetSpacePath, {String? deletionGuardId}) async {
  final response = await client.moveItem(
    kref.uri,
    targetSpacePath,
    deletionGuardId: deletionGuardId,
  );
  return Item(response, client);
}