PayorcLogoCache class

Centralized in-memory image byte cache for SDK brand logos (banks, UPI apps, merchant icons). Pre-downloads logo bytes in the background using Dio so UI components like OptionLogoBox can render logos instantly with Image.memory.

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

clear() → void
Clears the in-memory logo cache.
getBytes(String? url) → Uint8List?
Synchronously returns cached image bytes if already loaded.
isCached(String? url) → bool
Returns true if url is already cached in memory.
load(String? url) → Future<Uint8List?>
Downloads and caches image bytes for url.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
precacheFromCustomization(CheckoutCustomizationData? data) → void
Pre-caches all logo URLs contained in a CheckoutCustomizationData payload.
precacheUrls(Iterable<String?> urls) → Future<void>
Asynchronously pre-downloads a list of logo URLs in parallel.
putBytes(String url, Uint8List bytes) → void
Manually seed byte entries for testing or local asset fallbacks.
toString() → String
A string representation of this object.
inherited

Operators

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

Static Properties

instance → PayorcLogoCache
final