PdfBaseCache class abstract

Store data in a cache

Implementers

Constructors

PdfBaseCache()
Create a cache
const

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

add(String key, Uint8List bytes) Future<void>
Add some data to the cache
clear() Future<void>
Clear the cache
contains(String key) Future<bool>
Does the cache contains this data?
get(String key) Future<Uint8List?>
Retrieve some data from the cache
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(String key) Future<void>
Remove some data from the cache
resolve({required String name, required Uri uri, bool cache = true, Map<String, String>? headers}) Future<Uint8List>
Resolve the data
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

defaultCache PdfBaseCache
The default cache used when none specified
getter/setter pair