File class

Represents a file.

Inheritance
Available Extensions

Constructors

File({required int id, required int size, required int expected_size, required LocalFile local, required RemoteFile remote, int? extra, int? clientId})
Represents a file

Properties

clientId int?
TDLib client instance identifier, for which the response was received.
read / writeoverride
expected_size int
Approximate file size in bytes in case the exact file size is unknown. Can be used to show download/upload progress.
read / write
extra int?
Request identifier. Must be non-zero.
read / writeoverride
hashCode int
The hash code for this object.
read-onlyinherited
id int
Unique file identifier.
read / write
local LocalFile
Information about the local copy of the file.
read / write
remote RemoteFile
Information about the remote copy of the file.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
size int
File size, in bytes; 0 if unknown.
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Object to Map serializer
override
toString() String
A string representation of this object.
override

Operators

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

Static Methods

fromMap(Map<String, dynamic>? _map) File?
Construct from Map.
override

Constants

CONSTRUCTOR → const String
@type
"file"