DiskCacheManager class
This manager handles the work with file cache.
Constructors
- DiskCacheManager(FileSystem fileSystem, String directory, {int? maxSize, int maxConcurrent = 10, Fetcher? fetcher})
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
-
cache(
String url, {Options options = const Options(), ProgressCallback? downloadProgress}) → Future< void> -
clear(
) → Future< void> -
close(
) → Future< void> -
exists(
String url) → Future< bool> -
fetch(
String url, {Options options = const Options()}) → Future< CacheResponse> -
get<
T> (String url, {Options options = const Options(), ProgressCallback? downloadProgress, required Transformer< CacheResponse, T> transformer}) → Future<T> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
String url) → Future< bool> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited