PageBlockEmbedded class final

An embedded web page

Inheritance

Constructors

PageBlockEmbedded({required String url, required String html, Photo? posterPhoto, required int width, required int height, required PageBlockCaption caption, required bool isFullWidth, required bool allowScrolling})
An embedded web page
const
PageBlockEmbedded.fromJson(Map<String, dynamic> json)
Parses a PageBlockEmbedded from TDLib JSON.
factory

Properties

allowScrolling → bool
True, if scrolling needs to be allowed
final
caption → PageBlockCaption
Block caption
final
clientId → int?
Identifier of the TDLib client that sent this object, when known.
no setterinherited
extra → dynamic
"@extra" of the request this object answers; null for updates.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
height → int
Block height; 0 if unknown
final
html → String
HTML-markup of the embedded page
final
isFullWidth → bool
True, if the block must be full width
final
posterPhoto → Photo?
Poster photo, if available; may be null
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
url → String
Web page URL, if available
final
width → int
Block width; 0 if unknown
final

Methods

copyWith({String? url, String? html, Photo? posterPhoto()?, int? width, int? height, PageBlockCaption? caption, bool? isFullWidth, bool? allowScrolling}) → PageBlockEmbedded
Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.
override
getConstructor() → String
TDLib type name, e.g. updateNewMessage.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts this object to TDLib JSON.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

CONSTRUCTOR → const String
TDLib type name.