DownloadFile class final

Downloads a file from the cloud. Download progress and completion of the download will be notified through updateFile updates

Returns File.

Inheritance

Constructors

DownloadFile({required int fileId, required int priority, required int offset, required int limit, required bool synchronous})
Downloads a file from the cloud. Download progress and completion of the download will be notified through updateFile updates
const

Properties

canBeCalledSynchronously → bool
Whether TDLib documents this request as callable through td_execute.
no setterinherited
fileId → int
Identifier of the file to download
final
hashCode → int
The hash code for this object.
no setterinherited
limit → int
Number of bytes which need to be downloaded starting from the "offset" position before the download will automatically be canceled; use 0 to download without a limit
final
offset → int
The starting position from which the file needs to be downloaded
final
priority → int
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
synchronous → bool
Pass true to return response only after the file download has succeeded, has failed, has been canceled, or a new downloadFile request with different offset/limit parameters was sent; pass false to return file state immediately, just after the download has been started
final

Methods

copyWith({int? fileId, int? priority, int? offset, int? limit, bool? synchronous}) → DownloadFile
Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.
getConstructor() → String
TDLib function name, e.g. getMe.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson([dynamic extra]) → Map<String, dynamic>
Converts this request to TDLib JSON, tagged with extra if given.
override
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

CONSTRUCTOR → const String
TDLib type name.