WebPageInstantView class final

Describes an instant view page for a web page

Inheritance

Constructors

WebPageInstantView({required List<PageBlock> pageBlocks, required int viewCount, required int version, required bool isRtl, required bool isFull, required InternalLinkType feedbackLink, dynamic extra, int? clientId})
Describes an instant view page for a web page
const
WebPageInstantView.fromJson(Map<String, dynamic> json)
Parses a WebPageInstantView from TDLib JSON.
factory

Properties

clientId → int?
Identifier of the TDLib client that sent this object.
final
extra → dynamic
"@extra" of the request this object answers.
final
An internal link to be opened to leave feedback about the instant view
final
hashCode → int
The hash code for this object.
no setterinherited
isFull → bool
True, if the instant view contains the full page. A network request might be needed to get the full web page instant view
final
isRtl → bool
True, if the instant view must be shown from right to left
final
pageBlocks → List<PageBlock>
Content of the web page
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
version → int
Version of the instant view; currently, can be 1 or 2
final
viewCount → int
Number of the instant view views; 0 if unknown
final

Methods

copyWith({List<PageBlock>? pageBlocks, int? viewCount, int? version, bool? isRtl, bool? isFull, InternalLinkType? feedbackLink, dynamic extra, int? clientId}) → WebPageInstantView
Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.
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.