WebPage class
Describes a web page preview.
- Inheritance
- Available Extensions
Constructors
- WebPage({required String url, required String display_url, required String type, required String site_name, required String title, required FormattedText description, Photo? photo, required String embed_url, required String embed_type, required int embed_width, required int embed_height, required int duration, required String author, Animation? animation, Audio? audio, Document? document, Sticker? sticker, Video? video, VideoNote? video_note, VoiceNote? voice_note, required int story_sender_chat_id, required int story_id, required int instant_view_version, int? extra, int? clientId})
- Describes a web page preview
Properties
- animation ↔ Animation?
-
Preview of the content as an animation, if available; may be null.
read / write
- audio ↔ Audio?
-
Preview of the content as an audio file, if available; may be null.
read / write
-
Author of the content.
read / write
- clientId ↔ int?
-
TDLib client instance identifier, for which the response was received.
read / writeoverride
- description ↔ FormattedText
-
Description of the content.
read / write
- display_url ↔ String
-
URL to display.
read / write
- document ↔ Document?
-
Preview of the content as a document, if available; may be null.
read / write
- duration ↔ int
-
Duration of the content, in seconds.
read / write
- embed_height ↔ int
-
Height of the embedded preview.
read / write
- embed_type ↔ String
-
MIME type of the embedded preview, (e.g., text/html or video/mp4).
read / write
- embed_url ↔ String
-
URL to show in the embedded preview.
read / write
- embed_width ↔ int
-
Width of the embedded preview.
read / write
- extra ↔ int?
-
Request identifier. Must be non-zero.
read / writeoverride
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- instant_view_version ↔ int
-
Version of web page instant view (currently, can be 1 or 2); 0 if none.
read / write
- photo ↔ Photo?
-
Image representing the content; may be null.
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- site_name ↔ String
-
Short name of the site (e.g., Google Docs, App Store).
read / write
- sticker ↔ Sticker?
-
Preview of the content as a sticker for small WEBP files, if available; may be null.
read / write
- story_id ↔ int
-
The identifier of the previewed story; 0 if none.
read / write
- story_sender_chat_id ↔ int
-
The identifier of the sender of the previewed story; 0 if none.
read / write
- title ↔ String
-
Title of the content.
read / write
- type ↔ String
-
Type of the web page. Can be: article, photo, audio, video, document, profile, app, or something else.
read / write
- url ↔ String
-
Original URL of the link.
read / write
- video ↔ Video?
-
Preview of the content as a video, if available; may be null.
read / write
- video_note ↔ VideoNote?
-
Preview of the content as a video note, if available; may be null.
read / write
- voice_note ↔ VoiceNote?
-
Preview of the content as a voice note, if available; 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
Constants
- CONSTRUCTOR → const String
-
@type
"webPage"