ChatMessageContent class sealed

The content of a message.

Implementers
Annotations
  • @immutable

Constructors

ChatMessageContent.fromMap(Map<String, dynamic> map)
factory
ChatMessageContent.image({required String data, String? mimeType, ChatMessageContentImageDetail imageDetail = ChatMessageContentImageDetail.auto})
The content of a message that is an image.
factory
ChatMessageContent.multiModal(List<ChatMessageContent> parts)
The content of a message that is multi-modal.
factory
ChatMessageContent.text(String text)
The content of a message that is text.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Converts this ChatMessageContent to a map
toString() String
A string representation of this object.
inherited

Operators

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