Cache class
The cache for decoded SVGs.
Constructors
- Cache()
Properties
- count → int
-
The number of entries in the cache.
no setter
- currentByteSize → int
-
Number of bytes retained by completed cache entries.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- maximumByteSize ↔ int
-
Maximum number of compiled SVG bytes to retain. Defaults to 32 MiB.
getter/setter pair
- 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 completed entries and invalidates pending loads.
-
evict(
Object key) → bool - Evicts a completed entry or invalidates its pending load, returning true if found.
-
maybeEvict(
Object key, SvgTheme oldData, SvgTheme newData) → bool -
Evicts a single entry from the cache if the
oldDataandnewDataare 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 ByteData 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