initialize method

Future<void> initialize()

Initializes the unified model manager

Implementation

Future<void> initialize() async {
  if (_isInitialized) return;

  try {
    // Perform smart cleanup with resume detection
    await UnifiedDownloadEngine.performCleanup();

    _isInitialized = true;
    debugPrint('UnifiedModelManager initialized successfully');
  } catch (e) {
    debugPrint('Failed to initialize UnifiedModelManager: $e');
    throw ModelStorageException(
      'Failed to initialize model manager',
      e,
      'initialize',
    );
  }
}