ImageDownloader class

Provide the function to save the image on the Internet to each devices.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Static Methods

callback({required dynamic onProgressUpdate(String?, int)}) → void
You can get the progress with onProgressUpdate. On iOS, cannot get imageId.
cancel() Future<void>
cancel a single Downloading.
downloadImage(String url, {String? outputMimeType, Map<String, String>? headers, AndroidDestinationType? destination}) Future<String?>
Save the image of the specified url on each devices.
findByteSize(String imageId) Future<int?>
Acquire the saved image byte size.
findMimeType(String imageId) Future<String?>
Acquire the saved image mimeType.
findName(String imageId) Future<String?>
Acquire the saved image name.
findPath(String imageId) Future<String?>
Acquire the saved image path.
open(String localPath) Future<void>