GitsCachedNetworkImageManager class
Constructors
- GitsCachedNetworkImageManager()
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxConcurrent ↔ int
-
int maxConcurrent = 10;
is declaring the maximum number of concurrent requests that can be made to download images. If the number of concurrent requests exceeds this limit, the requests will be queued and executed one by one.getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- ttl ↔ Duration
-
Duration ttl = const Duration(days: 30);
is declaring a default time-to-live (TTL) duration for cached images. The TTL is the amount of time that a cached image is considered valid before it needs to be refreshed. In this case, the default TTL is set to 30 days.getter/setter pair
Methods
-
cachedOrAsync(
String imageUrl, CallbackCachedManager callback) → Future< void> - This function checks if an image is cached, and if not, handles it asynchronously while limiting the number of concurrent requests.
-
cachedOrAsyncProvider(
String imageUrl) → Future< Uint8List?> - This function checks if an image is cached, and if not, retrieves it asynchronously and returns it as a Uint8List.
-
clear(
) → Future< void> - This function clears all data stored in a box.
-
close(
) → Future< void> - This function closes a box if it is open and sets it to null.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeCache(
String imageUrl) → Future< void> - This function removes an image cache from a box using its URL.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited