deleteTempFile method

  1. @override
Future<bool> deleteTempFile(
  1. String filePath
)

Deletes a temporary filePath.

Implementation

@override
Future<bool> deleteTempFile(String filePath) async {
  if (_tempFiles.contains(filePath)) {
    _tempFiles.remove(filePath);
    await File(filePath).delete();
    return true;
  }
  return false;
}