MessageWidget class final

A message with an HTML widget

Inheritance

Constructors

MessageWidget({required int width, required int height, required String html, required String publicData, required String chatData, required int widgetId, required FormattedText caption, required bool showCaptionAboveMedia, required bool isCopy, required bool canSendQueries, required bool canSendBackgroundQueries})
A message with an HTML widget
const
MessageWidget.fromJson(Map<String, dynamic> json)
Parses a MessageWidget from TDLib JSON.
factory

Properties

canSendBackgroundQueries → bool
True, if the widget can send queries to the bot in the background
final
canSendQueries → bool
True, if the widget can send queries to the bot
final
caption → FormattedText
Widget caption
final
chatData → String
Data of the widget, which is specific to the chat
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
Height of the widget; 0 if the height of the widget isn't fixed
final
html → String
HTML code of the widget
final
isCopy → bool
True, if the message is a copy of the widget
final
publicData → String
Public data of the widget
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
showCaptionAboveMedia → bool
True, if the caption must be shown above the widget; otherwise, the caption must be shown below the widget
final
widgetId → int
Identifier of the shared widget; 0 if the widget isn't shared
final
width → int
Width of the widget; 0 if the widget must occupy the whole width of the message bubble
final

Methods

copyWith({int? width, int? height, String? html, String? publicData, String? chatData, int? widgetId, FormattedText? caption, bool? showCaptionAboveMedia, bool? isCopy, bool? canSendQueries, bool? canSendBackgroundQueries}) → MessageWidget
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.