copy function
Copy a document uri
to the destination
.
This API uses the createFile
and getDocumentContent
API's behind the scenes.
Implementation
Future<DocumentFile?> copy(Uri uri, Uri destination) async {
final args = <String, String>{'uri': '$uri', 'destination': '$destination'};
return invokeMapMethod('copy', args);
}