content function
Represents image data sent to and received from requests. Function to construct content sent to and received
Contains a collection of text, image, and binary parts.
Implementation
Content content({String? role, required Function(ContentBuilder) init}) {
final builder = ContentBuilder();
builder.role = role;
init(builder);
return builder.build();
}