move method

  1. @override
Future<void> move({
  1. required String containerId,
  2. required String fromRelativePath,
  3. required String toRelativePath,
})
override

Move a file from one location to another in the iCloud container

containerId is the iCloud Container Id.

fromRelativePath is the relative path of the file to be moved, such as folder1/file

toRelativePath is the relative path to move to, such as folder2/file

PlatformException with code PlatformExceptionCode.fileNotFound will be thrown if the file does not exist

Implementation

@override
Future<void> move({
  required containerId,
  required String fromRelativePath,
  required String toRelativePath,
}) async {
  await methodChannel.invokeMethod('move', {
    'containerId': containerId,
    'atRelativePath': fromRelativePath,
    'toRelativePath': toRelativePath,
  });
}