WebPage class

Implemented types

Constructors

WebPage({String url, String displayUrl, String type, String siteName, String title, String 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. url Original URL of the link . displayUrl URL to display. type Type of the web page. Can be. siteName Short name of the site (e.g., Google Docs, App Store) . title Title of the content . paramDescription Description of the content. photo Image representing the content; may be null. embedUrl URL to show in the embedded preview. embedType MIME type of the embedded preview, (e.g., text. embedWidth Width of the embedded preview. embedHeight Height of the embedded preview. duration Duration of the content, in seconds. author Author of the content. animation Preview of the content as an animation, if available; may be null. audio Preview of the content as an audio file, if available; may be null. document Preview of the content as a document, if available (currently only available for small PDF files and ZIP archives); may be null. sticker Preview of the content as a sticker for small WEBP files, if available; may be null. video Preview of the content as a video, if available; may be null. videoNote Preview of the content as a video note, if available; may be null. voiceNote Preview of the content as a voice note, if available; may be null. instantViewVersion Version of instant view, available for the web page (currently can be 1 or 2), 0 if none
WebPage.fromJson(Map<String, dynamic> json)
Parse from a json

Properties

animation Animation
read / write
audio Audio
read / write
author String
read / write
description String
read / write
displayUrl String
read / write
document Document
read / write
duration int
read / write
embedHeight int
read / write
embedType String
read / write
embedUrl String
read / write
embedWidth int
read / write
extra ↔ dynamic
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
instantViewVersion int
read / write
photo Photo
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
siteName String
read / write
sticker Sticker
read / write
title String
read / write
type String
read / write
url String
read / write
video Video
read / write
videoNote VideoNote
read / write
voiceNote VoiceNote
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
Returns a string representation of this object.
inherited

Operators

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

Constants

CONSTRUCTOR → const String
"webPage"