download abstract method

Future<int> download(
  1. Uri url,
  2. File destination
)

Downloads url into destination and returns the number of bytes written.

Throws DioException on an HTTP error status or a network failure.

Implementation

Future<int> download(Uri url, File destination);