ImageContent extension type
An image provided to or from an LLM.
Constructors
- ImageContent.new({required String data, required String mimeType, Annotations? annotations})
-
factory
-
ImageContent.fromMap(Map<
String, Object?> _value)
Properties
- annotations → Annotations?
-
Annotations for this object.
no setterinherited
- data → String
-
The base64 encoded image data.
no setter
- isAudio → bool
-
Whether or not this is an AudioContent.
no setterinherited
- isEmbeddedResource → bool
-
Whether or not this is an EmbeddedResource.
no setterinherited
- isImage → bool
-
Whether or not this is an ImageContent.
no setterinherited
- isText → bool
-
Whether or not this is a TextContent.
no setterinherited
- mimeType → String
-
The MIME type of the image.
no setter
- type → String
-
The type of content.
no setteroverride
Constants
- expectedType → const String