AddFileToDownloads constructor

const AddFileToDownloads({
  1. required int fileId,
  2. required int chatId,
  3. required int messageId,
  4. required int priority,
})

Adds a file from a message to the list of file downloads. Download progress and completion of the download will be notified through updateFile updates.. If message database is used, the list of file downloads is persistent across application restarts. The downloading is independent from download using downloadFile, i.e. it continues if downloadFile is canceled or is used to download a part of the file

Implementation

const AddFileToDownloads({
  required this.fileId,
  required this.chatId,
  required this.messageId,
  required this.priority,
});