File class

Inheritance

Constructors

File({int id, int size, int expectedSize, LocalFile local, RemoteFile remote})
Represents a file
File.fromJson(Map<String, dynamic> json)
Parse from a json

Properties

expectedSize int
expectedSize Expected file size in case the exact file size is unknown, but an approximate size is known. Can be used to show download/upload progress
read / write
extra ↔ dynamic
callback sign
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
id int
id Unique file identifier
read / write
local LocalFile
local Information about the local copy of the file
read / write
remote RemoteFile
remote Information about the remote copy of the file
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
size int
size File size; 0 if unknown
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
A string representation of this object. [...]
inherited

Operators

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

Constants

CONSTRUCTOR → const String
'file'