sftpUpload method

Future<String> sftpUpload ({@required String path, @required String toPath, Callback callback })

Implementation

Future<String> sftpUpload({
  @required String path,
  @required String toPath,
  Callback callback,
}) async {
  uploadCallback = callback;
  var result = await _channel.invokeMethod('sftpUpload', {
    "id": id,
    "path": path,
    "toPath": toPath,
  });
  return result;
}