''_cacheManager == null': is not true audio service issue fix
If anybody getting an issue in the audio_service library in flutter then this minor code may be helpful in fixing it
WillPopScope(
onWillPop: () async {
await _audioHandler.stop();
return true;
},
child: Scaffold(...))
Solution 1:[1]
I got this error because I initialized just_audio_background and audio_service package at the same time.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Jeremy Caney |
