WebPage class
Constructors
-
WebPage({required String url, required String displayUrl, required String type, required String siteName, required String title, required FormattedText description, Photo? photo, required String embedUrl, required String embedType, required int embedWidth, required int embedHeight, required int duration, required String author, Animation? animation, Audio? audio, Document? document, Sticker? sticker, Video? video, VideoNote? videoNote, VoiceNote? voiceNote, required int storySenderChatId, required int storyId, required int instantViewVersion, int? clientId})
-
Describes a web page preview
const
-
WebPage.fromJson(Map<String, dynamic> json)
-
Parse from a json
factory
Properties
-
animation
→ Animation?
-
animation Preview of the content as an animation, if available; may be null
final
-
audio
→ Audio?
-
audio Preview of the content as an audio file, if available; may be null
final
-
author
→ String
-
author Author of the content
final
-
clientId
→ int?
-
clientId client identifier
final
-
description
→ FormattedText
-
description Description of the content
final
-
displayUrl
→ String
-
displayUrl URL to display
final
-
document
→ Document?
-
document Preview of the content as a document, if available; may be null
final
-
duration
→ int
-
duration Duration of the content, in seconds
final
-
embedHeight
→ int
-
embedHeight Height of the embedded preview
final
-
embedType
→ String
-
embedType MIME type of the embedded preview, (e.g., text/html or video/mp4)
final
-
embedUrl
→ String
-
embedUrl URL to show in the embedded preview
final
-
embedWidth
→ int
-
embedWidth Width of the embedded preview
final
-
extra callback sign
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
instantViewVersion
→ int
-
instantViewVersion Version of web page instant view (currently, can be 1 or 2); 0 if none
final
-
photo
→ Photo?
-
photo Image representing the content; may be null
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
siteName
→ String
-
siteName Short name of the site (e.g., Google Docs, App Store)
final
-
sticker
→ Sticker?
-
sticker Preview of the content as a sticker for small WEBP files, if available; may be null
final
-
storyId
→ int
-
storyId The identifier of the previewed story; 0 if none
final
-
storySenderChatId
→ int
-
storySenderChatId The identifier of the sender of the previewed story; 0 if none
final
-
title
→ String
-
title Title of the content
final
-
type
→ String
-
type Type of the web page. Can be: article, photo, audio, video, document, profile, app, or something else
final
-
url
→ String
-
url Original URL of the link
final
-
video
→ Video?
-
video Preview of the content as a video, if available; may be null
final
-
videoNote
→ VideoNote?
-
videoNote Preview of the content as a video note, if available; may be null
final
-
voiceNote
→ VoiceNote?
-
voiceNote Preview of the content as a voice note, if available; may be null
final
Methods
-
copyWith({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? storySenderChatId, int? storyId, int? instantViewVersion, int? clientId})
→ WebPage
-
-
getConstructor()
→ String
-
override
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson([])
→ Map<String, dynamic>
-
override
-
toString()
→ String
-
A string representation of this object.
inherited