getCacheInfo method
Get information about the cache status
Implementation
Map<String, dynamic> getCacheInfo() {
return {
'hasCachedData': _cachedRates != null,
'baseCurrency': _cachedBaseCode,
'lastUpdated': _lastUpdated?.toIso8601String(),
'nextUpdate': _nextUpdate?.toIso8601String(),
'cacheValidityMinutes': _cacheValidityMinutes,
};
}