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