ChatMessage class

Constructors

ChatMessage({required String id, required String content, required String role, required DateTime timestamp, bool isLoading = false, String? imageUrl, Uint8List? imageBytes, String? fileName, List<QuickReplyButton> quickReplies = const [], MessageType type = MessageType.text, bool isThinking = false, String? thinkingStatus, bool isStreaming = false, Map<String, dynamic>? uiComponentData, String? audioPath, int? audioDuration, String? userSelection, int? messageIndex})

Properties

audioDuration int?
final
audioPath String?
final
content String
final
fileName String?
final
hashCode int
The hash code for this object.
no setterinherited
id String
final
imageBytes Uint8List?
final
imageUrl String?
final
isLoading bool
final
isStreaming bool
final
isThinking bool
final
messageIndex int?
final
quickReplies List<QuickReplyButton>
final
role String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
thinkingStatus String?
final
timestamp DateTime
final
type MessageType
final
uiComponentData Map<String, dynamic>?
final
userSelection String?
final

Methods

copyWith({String? id, String? content, String? role, DateTime? timestamp, bool? isLoading, String? imageUrl, Uint8List? imageBytes, String? fileName, MessageType? type, bool? isThinking, String? thinkingStatus, bool? isStreaming, List<QuickReplyButton>? quickReplies, Map<String, dynamic>? uiComponentData, String? audioPath, int? audioDuration}) ChatMessage
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.
inherited