ChatMessageContent class sealed

The content of a message.

Implementers
Annotations
  • @immutable

Constructors

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
toString() String
A string representation of this object.
inherited

Operators

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