LocalFile class



LocalFile({String path, bool canBeDownloaded, bool canBeDeleted, bool isDownloadingActive, bool isDownloadingCompleted, int downloadOffset, int downloadedPrefixSize, int downloadedSize})
Represents a local file
LocalFile.fromJson(Map<String, dynamic> json)
Parse from a json


canBeDeleted bool
canBeDeleted True, if the file can be deleted
read / write
canBeDownloaded bool
canBeDownloaded True, if it is possible to try to download or generate the file
read / write
downloadedPrefixSize int
downloadedPrefixSize If is_downloading_completed is false, then only some prefix of the file starting from download_offset is ready to be read. downloaded_prefix_size is the size of that prefix
read / write
downloadedSize int
downloadedSize Total downloaded file bytes. Should be used only for calculating download progress. The actual file size may be bigger, and some parts of it may contain garbage
read / write
downloadOffset int
downloadOffset Download will be started from this offset. downloaded_prefix_size is calculated from this offset
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
isDownloadingActive bool
isDownloadingActive True, if the file is currently being downloaded (or a local copy is being generated by some other means)
read / write
isDownloadingCompleted bool
isDownloadingCompleted True, if the local copy is fully available
read / write
path String
path Local path to the locally available file part; may be empty
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


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