forceCache property

bool forceCache
final

When true, the image is downloaded once and stored persistently in IndexedDB (web) or the app documents directory (Android/iOS/desktop) via TImageStorage.

This provides more stable long-term storage than the OS HTTP cache or flutter_cache_manager, which can be evicted at any time by the browser or OS. Subsequent loads skip the network entirely and read from the local store.

When false (the default) the existing CachedNetworkImage behaviour is used unchanged.

Implementation

final bool forceCache;