pause method
Tells the media player to pause the current song _assetsAudioPlayer.pause();
Implementation
Future<void> pause() async {
if (_isLiveStream) {
// on livestream, we stop
await _stop(removeNotification: false);
} else {
if (!_stopped) {
await _sendChannel.invokeMethod('pause', {
'id': id,
});
_lastSeek = _currentPosition.value;
}
}
}