PCacheImageService class

Constructors

PCacheImageService()

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 Properties

cacheBox → dynamic
no setter
length int
Gets the number of cached images in the actual session
no setter

Static Methods

clearAllImages() Future<void>
delete all images from storage
deleteHiveImage(String url) Future<void>
Delete the image form the hive storage
downloadImage(String url, Duration retryDuration, Duration maxRetryDuration) Future<Uint8List>
Downloads the image
getHiveImage(String url) HiveCacheImage?
Get the image form the hive storage
getImage(String url, Duration retryDuration, Duration maxRetryDuration, bool enableCache, {bool clearCacheImage = false}) Future<Codec>
Get the image codec
init({String? proxy}) Future<void>
Initialize the service on web
saveHiveImage(String url, Uint8List image) HiveCacheImage
Save the image in the hive storage