deleteOnCancel function
Implementation
void deleteOnCancel(AudioHandlers audio) async {
final res = await audio.stopRecording();
if (res != null) {
await deleteFile(res);
}
}
void deleteOnCancel(AudioHandlers audio) async {
final res = await audio.stopRecording();
if (res != null) {
await deleteFile(res);
}
}