AssetsDownloadConfig class

Assets download configuration which can be passed to AssetDownloader.initialize method.

maxNoOfDownloadedAssets is the maximum number of assets that can be downloaded and stored in the device. In case the number of assets exceeds this limit, the LRU assets will be deleted.

maxStaleDuration is the maximum duration for which an asset can be stored in the device.

Constructors

AssetsDownloadConfig({int maxNoOfDownloadedAssets = 50, Duration maxStaleDuration = const Duration(days: 15)})

Properties

hashCode int
The hash code for this object.
no setterinherited
maxNoOfDownloadedAssets int
final
maxStaleDuration Duration
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