pause method
Implementation
Future<void> pause(AudioPlayer player) async {
_state = _state?.copyWith(status: AudioStatus.paused);
await player.pause();
}
Future<void> pause(AudioPlayer player) async {
_state = _state?.copyWith(status: AudioStatus.paused);
await player.pause();
}