File class

Implemented types

Constructors

File({int id, int size, int expectedSize, LocalFile local, RemoteFile remote})
Represents a file. id Unique file identifier. size File size; 0 if unknown. expectedSize Expected file size in case the exact file size is unknown, but an approximate size is known. Can be used to show download. local Information about the local copy of the file. remote Information about the remote copy of the file
File.fromJson(Map<String, dynamic> json)
Parse from a json

Properties

expectedSize int
read / write
extra ↔ dynamic
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
id int
read / write
local LocalFile
read / write
remote RemoteFile
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
size int
read / write

Methods

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

Operators

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

Constants

CONSTRUCTOR → const String
"file"