copyTo method
Implementation
@override
Future<SafDocumentFile> copyTo(
String uri,
bool isDir,
String newParentUri,
) async {
final map = await methodChannel.invokeMapMethod<String, dynamic>('copyTo', {
'uri': uri,
'isDir': isDir,
'newParentUri': newParentUri,
});
if (map == null) {
throw Exception('Failed to copy: $uri');
}
return SafDocumentFile.fromMap(map);
}