InlineImageCachePolicy class final

Shared cache accounting for remote inline-image hosts.

Image bytes are shipped ahead of the presentation plan that references them. The app-side sender and browser-side blob cache must therefore make identical eviction decisions or the sender can incorrectly believe an evicted image is still available. This ledger keeps that policy in one platform-neutral place.

Constructors

InlineImageCachePolicy({int maxEntries = 512, int maxBytes = 32 * 1024 * 1024})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
maxBytes → int
Maximum total encoded bytes for stale and placed images combined.
final
maxEntries → int
Maximum number of cached content-hash ids.
final
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