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})
-
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