pauseVoiceMessage method
Implementation
Future<void> pauseVoiceMessage({bool notify = true}) async {
if (_disposed) return;
_state = RCKAudioPlayerState.paused;
if (!notify) {
if (_player.playerState.playing) {
_player.pause();
}
} else {
if (_player.playerState.playing) {
await _player.pause();
}
if (!_disposed) {
notifyListeners();
}
}
}