ChatReplySnapshot class

Minimal snapshot of a quoted message.

Used only to display the quote in UI without needing to fetch the original message.

Example:

final snapshot = ChatReplySnapshot(
  messageId: 'msg-1',
  authorId: 'user-456',
  authorDisplayName: 'John Doe',
  textPreview: 'Original message text...',
  createdAt: DateTime.now(),
);

Constructors

ChatReplySnapshot({required String messageId, required String authorId, required String authorDisplayName, String? authorAvatarUrl, required String textPreview, required DateTime createdAt})
Creates a new ChatReplySnapshot.
const

Properties

authorAvatarUrl String?
Optional avatar URL for the original message author.
final
authorDisplayName String
Display name of the author of the original message.
final
authorId String
ID of the author of the original message.
final
createdAt DateTime
Creation date of the original message.
final
hashCode int
The hash code for this object.
no setteroverride
messageId String
ID of the original message being replied to.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textPreview String
Preview text of the original message (typically truncated).
final

Methods

copyWith({String? messageId, String? authorId, String? authorDisplayName, String? authorAvatarUrl, String? textPreview, DateTime? createdAt}) ChatReplySnapshot
Creates a copy of this snapshot with the given fields replaced with new values.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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