read2File method

Future<void> read2File(
  1. String path,
  2. String savePath, {
  3. void onProgress(
    1. int count,
    2. int total
    )?,
  4. CancelToken? cancelToken,
})

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,
      );
}