deleteTempFile method

Future<void> deleteTempFile()

Deletes the temporary file if it exists.

Implementation

Future<void> deleteTempFile() async {
  if (_tempFilePath != null) {
    final file = File(_tempFilePath);
    if (await file.exists()) {
      await file.delete();
    }
  }
}