UploadFile constructor

const UploadFile({
  1. required InputFile file,
  2. FileType? fileType,
  3. required int priority,
})

Asynchronously uploads a file to the cloud without sending it in a message. updateFile will be used to notify about upload progress and successful completion of the upload. The file will not have a persistent remote identifier until it will be sent in a message

Implementation

const UploadFile({
  required this.file,
  this.fileType,
  required this.priority,
});