copy function

Future<DocumentFile?> copy(
  1. Uri uri,
  2. Uri destination
)

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);
}