stopAudio method
Implementation
Future<void> stopAudio(AudioRecorder recorder) async {
// stop the audio
await recorder.stop();
await recorder.dispose();
}
Future<void> stopAudio(AudioRecorder recorder) async {
// stop the audio
await recorder.stop();
await recorder.dispose();
}