CustomChatMessage class
Chat message with custom role.
- Inheritance
- 
    - Object
- ChatMessage
- CustomChatMessage
 
- Annotations
- 
    - @immutable
 
Constructors
- CustomChatMessage({required String content, required String role})
- 
          Chat message with custom role.
            const
- 
          CustomChatMessage.fromMap(Map<String, dynamic> map)
- 
          Converts a map to a CustomChatMessage.
            factory
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
- 
  toMap() → Map< String, dynamic> 
- 
  Converts this ChatMessage to a map along with a type hint for deserialization.
  override
- 
  toString() → String 
- 
  A string representation of this object.
  override
Operators
- 
  operator ==(covariant CustomChatMessage other) → bool 
- 
  The equality operator.
  override