extended_image_library
library
Functions
-
cachedImageExists(String url, {String? cacheKey})
→ Future<bool>
-
Check if the image exists in cache
-
clearDiskCachedImage(String url, {String? cacheKey})
→ Future<bool>
-
Clear the disk cache image then return if it succeed.
-
clearDiskCachedImages({Duration? duration})
→ Future<bool>
-
Clear the disk cache directory then return if it succeed.
-
clearMemoryImageCache([String? name])
→ void
-
clear all of image in memory
-
delete(Uri url, {Object? body, Encoding? encoding})
→ Future<Response>
-
Sends an HTTP DELETE request with the given headers to the given URL.
-
get(Uri url, {})
→ Future<Response>
-
Sends an HTTP GET request with the given headers to the given URL.
-
getCachedImageFile(String url, {String? cacheKey})
→ Future<File?>
-
Get the local file of the cached image
-
getCachedImageFilePath(String url, {String? cacheKey})
→ Future<String?>
-
Get the local file path of the cached image
-
getCachedSizeBytes()
→ Future<int>
-
Get total size of cached image
-
getMemoryImageCache([String? name])
→ ImageCache?
-
get ImageCache
-
getNetworkImageData(String url, {bool useCache = true, StreamController<ImageChunkEvent>? chunkEvents})
→ Future<Uint8List?>
-
get network image data from cached
-
head(Uri url, {})
→ Future<Response>
-
Sends an HTTP HEAD request with the given headers to the given URL.
-
keyToMd5(String key)
→ String
-
get md5 from key
-
patch(Uri url, {Object? body, Encoding? encoding})
→ Future<Response>
-
Sends an HTTP PATCH request with the given headers and body to the given
URL.
-
post(Uri url, {Object? body, Encoding? encoding})
→ Future<Response>
-
Sends an HTTP POST request with the given headers and body to the given URL.
-
put(Uri url, {Object? body, Encoding? encoding})
→ Future<Response>
-
Sends an HTTP PUT request with the given headers and body to the given URL.
-
read(Uri url, {})
→ Future<String>
-
Sends an HTTP GET request with the given headers to the given URL and
returns a Future that completes to the body of the response as a String.
-
readBytes(Uri url, {})
→ Future<Uint8List>
-
Sends an HTTP GET request with the given headers to the given URL and
returns a Future that completes to the body of the response as a list of
bytes.
-
runWithClient<R>(R body(), Client clientFactory(), {ZoneSpecification? zoneSpecification})
→ R
-
Runs
body
in its own Zone with the Client returned by clientFactory
set as the default Client.