pasteLocalFile method
Implementation
@override
Future<SafNewFile> pasteLocalFile(
String srcPath,
String treeUri,
String fileName,
String mime, {
bool? overwrite,
bool? append,
}) async {
final map = await methodChannel
.invokeMapMethod<String, dynamic>('pasteLocalFile', {
'localSrc': srcPath,
'treeUri': treeUri.toString(),
'fileName': fileName,
'mime': mime,
'overwrite': overwrite ?? false,
'append': append ?? false,
});
if (map == null) {
throw Exception('Unexpected empty response from `pasteLocalFile`');
}
return SafNewFile.fromMap(map);
}