deleteOnCancel function

void deleteOnCancel(
  1. AudioHandlers audio
)

Implementation

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