CustomChatMessage class

Chat message with custom role.

Inheritance
Annotations
  • @immutable

Constructors

CustomChatMessage({required String content, required String role})
Chat message with custom role.
const

Properties

content String
The content of the message.
final
contentAsString String
Returns to content of the message as a string.
no setterinherited
hashCode int
The hash code for this object.
no setteroverride
role String
The role of the author of this message.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

concat(ChatMessage other) CustomChatMessage
Merges this message with another by concatenating the content.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(covariant CustomChatMessage other) bool
The equality operator.
override