DownloadFile class



DownloadFile({int fileId, int priority, int offset, int limit, bool synchronous})
Downloads a file from the cloud. Download progress and completion of the download will be notified through updateFile updates. fileId Identifier of the file to download. 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 was called will be downloaded first. offset The starting position from which the file should be downloaded. limit Number of bytes which should be downloaded starting from the "offset" position before the download will be automatically cancelled; use 0 to download without a limit. synchronous If false, this request returns file state just after the download has been started. If true, this request returns file state only after. the download has succeeded, has failed, has been cancelled or a new downloadFile request with different offset
DownloadFile.fromJson(Map<String, dynamic> json)
Parse from a json


constructor String
read / write, inherited
extra ↔ dynamic
read / write
fileId int
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
limit int
read / write
offset int
read / write
priority int
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
synchronous bool
read / write


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


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


CONSTRUCTOR → const String