stopRecord method
void
stopRecord()
Implementation
void stopRecord() async {
// timer.cancel();
try {
String? result = await _myRecorder.stopRecorder();
if (result != null) {
log('[chat_composer] 🟢 Audio path: "$result');
onRecordEnd(result);
}
} finally {
currentDuration.value = Duration.zero;
}
emit(RecordAudioReady());
}