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) {
_player?.pause();
}
_delay?.cancel();
_delay = null;
}