move method
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,
});
}