copy method
Copy a file from one location to another in the iCloud container
containerId is the iCloud Container Id.
fromRelativePath is the relative path of the source file
toRelativePath is the relative path of the destination file
Trailing slashes are allowed for directory paths returned by metadata.
The destination file will be overwritten if it exists. Parent directories will be created if needed.
PlatformException with code PlatformExceptionCode.fileNotFound will be thrown if the source file does not exist
Implementation
@override
Future<void> copy({
required String containerId,
required String fromRelativePath,
required String toRelativePath,
}) async {
await methodChannel.invokeMethod('copy', {
'containerId': containerId,
'fromRelativePath': fromRelativePath,
'toRelativePath': toRelativePath,
});
}