Cache class

The cache for decoded SVGs.

Constructors

Cache()

Properties

count int
The number of entries in the cache.
no setter
hashCode int
The hash code for this object.
no setterinherited
maximumSize int
Maximum number of entries to store in the cache.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear() → void
Evicts all entries from the cache.
evict(Object key) bool
Evicts a single entry from the cache, returning true if successful.
maybeEvict(Object key, SvgTheme oldData, SvgTheme newData) bool
Evicts a single entry from the cache if the oldData and newData are incompatible.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
putIfAbsent(Object key, Future<ByteData> loader()) Future<ByteData>
Returns the previously cached PictureStream for the given key, if available; if not, calls the given callback to obtain it first. In either case, the key is moved to the "most recently used" position.
toString() String
A string representation of this object.
inherited

Operators

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