read method

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

Read the bytes of a file It is best not to open debug mode, otherwise the byte data is too large and the output results in IDE cards, 😄

Implementation

Future<List<int>> read(
  String path, {
  void Function(int count, int total)? onProgress,
  CancelToken? cancelToken,
}) {
  return this.c.wdReadWithBytes(
        this,
        path,
        onProgress: onProgress,
        cancelToken: cancelToken,
      );
}