AddFileToDownloads class

Inheritance

Constructors

AddFileToDownloads({required int fileId, required int chatId, required int messageId, 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
const

Properties

chatId int
chatId Chat identifier of the message with the file
final
fileId int
fileId Identifier of the file to download
final
hashCode int
The hash code for this object.
no setterinherited
messageId int
messageId Message identifier
final
priority int
priority Priority of the download (1-32). The higher the priority, the earlier the file will be downloaded. If the priorities of two files are equal, then the last one for which downloadFile/addFileToDownloads was called will be downloaded first
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({int? fileId, int? chatId, int? messageId, int? priority}) AddFileToDownloads
getConstructor() String
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson([dynamic extra]) Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

CONSTRUCTOR → const String