writeFromFile method
Read local file stream and write to remote file
Implementation
Future<void> writeFromFile(
String localFilePath,
String path, {
void Function(int count, int total)? onProgress,
CancelToken? cancelToken,
}) async {
var file = io.File(localFilePath);
return this.c.wdWriteWithStream(
this,
path,
file.openRead(),
file.lengthSync(),
onProgress: onProgress,
cancelToken: cancelToken,
);
}