pause method
Pauses the background music without unloading or resetting the audio player.
Implementation
@override
Future<void> pause() async {
if (!hasPlaybackControl) {
console.warning( 'Audio: this Audio has no playback control.' );
return;
}
if(isPlaying) {
if(source != null)SoLoud.instance.setPause(source!, true);
}
_delay?.cancel();
_delay = null;
}