Document class

Describes a document of any type.

Inheritance
Available Extensions

Constructors

Document({required String file_name, required String mime_type, Minithumbnail? minithumbnail, Thumbnail? thumbnail, required File document, int? extra, int? clientId})
Describes a document of any type

Properties

clientId int?
TDLib client instance identifier, for which the response was received.
read / writeoverride
document File
File containing the document.
read / write
extra int?
Request identifier. Must be non-zero.
read / writeoverride
file_name String
Original name of the file; as defined by the sender.
read / write
hashCode int
The hash code for this object.
read-onlyinherited
mime_type String
MIME type of the file; as defined by the sender.
read / write
minithumbnail Minithumbnail?
Document minithumbnail; may be null.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
thumbnail Thumbnail?
Document thumbnail in JPEG or PNG format (PNG will be used only for background patterns); as defined by the sender; may be null.
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) Document?
Construct from Map.
override

Constants

CONSTRUCTOR → const String
@type
"document"