getStorageStats method

  1. @override
Future<Map<String, int>> getStorageStats()
override

Gets storage statistics

Implementation

@override
Future<Map<String, int>> getStorageStats() async {
  await _ensureInitialized();

  final installedCount = _installedModels.values.where((installed) => installed).length;

  return {
    'protectedFiles': installedCount,
    'totalSizeBytes': 0, // Unknown for web URLs
    'totalSizeMB': 0,
    'inferenceModels': installedCount, // Can't distinguish types easily
    'embeddingModels': 0,
  };
}