content function

Content content({
  1. String? role,
  2. required dynamic init(
    1. ContentBuilder
    ),
})

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();
}