pauseAll method
Pause all audio.
Implementation
Future<void> pauseAll() async {
if (_currentPlayer != null) {
try {
await _currentPlayer!.pause();
} catch (_) {
// Player may already be disposed
}
_isPlaying = false;
_playerChangedController.add(null);
}
}