PartialText class

A class that represents partial text message.

Annotations
  • @JsonSerializable()
  • @immutable

Constructors

PartialText({Map<String, dynamic>? metadata, PreviewData? previewData, Message? repliedMessage, required String text})
Creates a partial text message with all variables text can have. Use TextMessage to create a full message. You can use TextMessage.fromPartial constructor to create a full message from a partial one.
const
PartialText.fromJson(Map<String, dynamic> json)
Creates a partial text message from a map (decoded JSON).
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
metadata Map<String, dynamic>?
Additional custom metadata or attributes related to the message.
final
previewData PreviewData?
See PreviewData.
final
repliedMessage Message?
Message that is being replied to with the current message.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
User's message.
final

Methods

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

Operators

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