stopRecording method

void stopRecording()

Implementation

void stopRecording() async {
  await _recorder.stopRecorder();
  isRecording = false;
  detectedFrequency = getMostFrequentPitch();
  if(detectedFrequency > 0) playStopPreview();
  update();
}