download method

dynamic download(
  1. String url,
  2. String savePath,
  3. void onProcess(
    1. int count,
    2. int total
    )?
)

Implementation

download(String url, String savePath,
    void onProcess(int count, int total)?) async {
  await _dio.download(url, savePath, onReceiveProgress: onProcess);
}