stop static method
Stops the currently playing sound.
Implementation
static Future<void> stop() async {
try {
await _audioPlayer.stop();
} catch (e) {
if (kDebugMode) {
print('Failed to stop sound: $e');
}
}
}
Stops the currently playing sound.
static Future<void> stop() async {
try {
await _audioPlayer.stop();
} catch (e) {
if (kDebugMode) {
print('Failed to stop sound: $e');
}
}
}