diff --git a/packages/audioplayers/lib/src/audio_cache.dart b/packages/audioplayers/lib/src/audio_cache.dart index b619f8124..7a82466b4 100644 --- a/packages/audioplayers/lib/src/audio_cache.dart +++ b/packages/audioplayers/lib/src/audio_cache.dart @@ -128,12 +128,10 @@ class AudioCache { Future load(String fileName) async { var needsFetch = !loadedFiles.containsKey(fileName); - // On Android, verify that the cached file still exists. It can be removed + // Verify that the cached file still exists. It can be removed // by the system when the storage is almost full // see https://developer.android.com/training/data-storage/app-specific#internal-remove-cache - if (!needsFetch && - defaultTargetPlatform == TargetPlatform.android && - !await fileSystem.file(loadedFiles[fileName]).exists()) { + if (!needsFetch && !await fileSystem.file(loadedFiles[fileName]).exists()) { needsFetch = true; }