stopAudio method

Future<void> stopAudio(
  1. AudioRecorder recorder
)

Implementation

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