RemoteFile class



RemoteFile({String id, String uniqueId, bool isUploadingActive, bool isUploadingCompleted, int uploadedSize})
Represents a remote file
RemoteFile.fromJson(Map<String, dynamic> json)
Parse from a json


hashCode int
The hash code for this object. [...]
read-only, inherited
id String
id Remote file identifier; may be empty. Can be used by the current user across application restarts or even from other devices. Uniquely identifies a file, but a file can have a lot of different valid identifiers.. If the remoteFile starts with "http://" or "https://", it represents the HTTP URL of the file. TDLib is currently unable to download files if only their URL is known.. If downloadFile is called on such a file or if it is sent to a secret chat, TDLib starts a file generation process by sending updateFileGenerationStart to the application with the HTTP URL in the original_path and "#url#" as the conversion string. Application should generate the file by downloading it to the specified location
read / write
isUploadingActive bool
isUploadingActive True, if the file is currently being uploaded (or a remote copy is being generated by some other means)
read / write
isUploadingCompleted bool
isUploadingCompleted True, if a remote copy is fully available
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
uniqueId String
uniqueId Unique file identifier; may be empty if unknown. The unique file identifier which is the same for the same file even for different users and is persistent over time
read / write
uploadedSize int
uploadedSize Size of the remote available part of the file; 0 if unknown
read / write


getConstructor() String
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toJson() Map<String, dynamic>
toString() String
A string representation of this object. [...]


operator ==(Object other) bool
The equality operator. [...]


CONSTRUCTOR → const String