Content.user constructor

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

Creates user-role content from parts.

Example:

final content = Content.user([TextPart('Hello!')]);

Implementation

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