DioDownloadService class

Implements DownloadService using Dio.

Inheritance

Constructors

DioDownloadService(Dio dio)
Implements DownloadService using Dio.

Properties

dio → Dio
The Dio instance to use for downloading.
final
hashCode → int
The hash code for this object.
read-onlyinherited
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

download(String url, String name, {void onProgress(int total, int downloaded, double percent)?}) → Future<File>
Downloads a file from a given url to the temporary directory with the given name.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited