stopAudio method
Stops the currently playing audio.
Implementation
Future<void> stopAudio() async {
_playGeneration++;
if (_isDisposed) {
return;
}
// Ensure the file path is correct and accessible from the web directory
await _playback.stop();
}