stop method
Остановка звука
Implementation
Future<void> stop() async {
if (!_isPlaying) return;
await _audioPlayer?.stop();
_isPlaying = false;
notifyListeners();
}
Остановка звука
Future<void> stop() async {
if (!_isPlaying) return;
await _audioPlayer?.stop();
_isPlaying = false;
notifyListeners();
}