TextQuote class

Contains information about the quoted part of a message that is replied to by the given message.

Constructors

TextQuote({required String text, List<MessageEntity>? entities, required int position, bool? isManual})
Constructs a TextQuote.
const
TextQuote.fromJson(Map<String, dynamic> json)
Creates a TextQuote object from a JSON object.
factory

Properties

entities List<MessageEntity>?
Special entities that appear in the quote. Currently, only bold, italic, underline, strikethrough, spoiler, and custom_emoji entities are kept in quotes.
final
hashCode int
The hash code for this object.
no setterinherited
isManual bool?
True, if the quote was chosen manually by the message sender. Otherwise, the quote was added automatically by the server.
final
position int
Approximate quote position in the original message in UTF-16 code units as specified by the sender.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
Text of the quoted part of a message that is replied to by the given message.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts the TextQuote object to a JSON object.
toString() String
A string representation of this object.
inherited

Operators

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