deleteFile static method

dynamic deleteFile({
  1. required FileData fileData,
  2. required dynamic onDeleted(
    1. FileData fileData
    ),
})

function file deletion

Implementation

static deleteFile(
    {required FileData fileData,
    required Function(FileData fileData) onDeleted}) async {
  fileData.hasFile = false;
  fileData.fileName = "";
  fileData.filePath = "";
  fileData.fileMimeType = "";
  fileData.path = "";
  fileData.otherDevicePath = "";
  onDeleted(fileData);
}