getStorageStats method
Obtiene estadísticas del storage
Implementation
Future<Map<String, dynamic>> getStorageStats() async {
try {
final eventCount = await getEventCount();
final storageType = _useHive ? 'Hive' : 'SharedPreferences';
return {
'storage_type': storageType,
'event_count': eventCount,
'max_events': _maxEventsPerBox,
'max_age_days': _maxEventAge ~/ (24 * 60 * 60 * 1000),
'is_initialized': _isInitialized,
};
} catch (e) {
return {'error': e.toString()};
}
}