Content.model constructor

const Content.model(
  1. List<Part> parts
)

Creates model-role content from parts.

Example:

final content = Content.model([TextPart('Hi there!')]);

Implementation

const Content.model(List<Part> parts) : this(parts: parts, role: 'model');