read2File method
Read the bytes of a file with stream and write to a local file
Implementation
Future<void> read2File(
String path,
String savePath, {
void Function(int count, int total)? onProgress,
CancelToken? cancelToken,
}) async {
await this.c.wdReadWithStream(
this,
path,
savePath,
onProgress: onProgress,
cancelToken: cancelToken,
);
}