stopRecording method
Implementation
Future<void> stopRecording() async {
isAudioRecording(Constants.audioRecordDone);
isUserTyping(true);
_audioTimer?.cancel();
_audioTimer = null;
await record.stop().then((filePath) async {
if (File(filePath!).existsSync()) {
recordedAudioPath = filePath;
} else {
debugPrint("File Not Found For Audio");
}
debugPrint(filePath);
});
}