INNER CODE UNIT · Dart

maxConcurrentDownloads

sheikhhaziq/gyawun_music · lib/services/download_manager.dart:29

  final int maxConcurrentDownloads = 3; // Limit concurrent downloads
  final Queue<String> _activeDownloads =
      Queue<String>(); // Currently active downloads
  final Queue<Map> _downloadQueue = Queue<Map>(); // Queue for pending downloads

  Map get downloads => _box.toMap();

  Listenable songListenable(String songId) {
    return _box.listenable(keys: [songId]);
  }

  Map? getDownload(String songId) {
    return _box.get(songId);
  }

  Map getCleanSong(Map song) {
    final Map clean = Map.from(song);
    clean.remove('status');

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…