stop method
Stops the currently playing background music track (if any).
Implementation
Future<void> stop() async {
isPlaying = false;
if (audioPlayer != null) {
await audioPlayer!.stop();
}
}
Stops the currently playing background music track (if any).
Future<void> stop() async {
isPlaying = false;
if (audioPlayer != null) {
await audioPlayer!.stop();
}
}