Content class

Represents content sent to and received from the model.

Contains a collection of text, image, and binary parts.

Content can be constructed using the content function in a DSL-like manner.

Available extensions

Constructors

Content({String? role, required List<Part> parts})

Properties

hashCode int
The hash code for this object.
no setterinherited
parts List<Part>
final
role String?
final
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
toInternal() Future<InternalContent>

Available on Content, provided by the ContentInternal extension

toString() String
A string representation of this object.
inherited

Operators

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