stop static method

Future<void> stop()

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');
    }
  }
}