WebPage class

Inheritance

Constructors

WebPage({String url, String displayUrl, String type, String siteName, String title, FormattedText description, Photo photo, String embedUrl, String embedType, int embedWidth, int embedHeight, int duration, String author, Animation animation, Audio audio, Document document, Sticker sticker, Video video, VideoNote videoNote, VoiceNote voiceNote, int instantViewVersion})
Describes a web page preview
WebPage.fromJson(Map<String, dynamic> json)
Parse from a json

Properties

animation Animation
animation Preview of the content as an animation, if available; may be null
read / write
audio Audio
audio Preview of the content as an audio file, if available; may be null
read / write
author String
author Author of the content
read / write
description FormattedText
description Description of the content
read / write
displayUrl String
displayUrl URL to display
read / write
document Document
document Preview of the content as a document, if available (currently only available for small PDF files and ZIP archives); may be null
read / write
duration int
duration Duration of the content, in seconds
read / write
embedHeight int
embedHeight Height of the embedded preview
read / write
embedType String
embedType MIME type of the embedded preview, (e.g., text/html or video/mp4)
read / write
embedUrl String
embedUrl URL to show in the embedded preview
read / write
embedWidth int
embedWidth Width of the embedded preview
read / write
extra ↔ dynamic
callback sign
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
instantViewVersion int
instantViewVersion Version of instant view, available for the web page (currently can be 1 or 2), 0 if none
read / write
photo Photo
photo Image representing the content; may be null
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
siteName String
siteName Short name of the site (e.g., Google Docs, App Store)
read / write
sticker Sticker
sticker Preview of the content as a sticker for small WEBP files, if available; may be null
read / write
title String
title Title of the content
read / write
type String
type Type of the web page. Can be: article, photo, audio, video, document, profile, app, or something else
read / write
url String
url Original URL of the link
read / write
video Video
video Preview of the content as a video, if available; may be null
read / write
videoNote VideoNote
videoNote Preview of the content as a video note, if available; may be null
read / write
voiceNote VoiceNote
voiceNote Preview of the content as a voice note, if available; may be null
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
'webPage'