UserMessage constructor

UserMessage({
  1. required MessageId messageId,
  2. AcpPatch<List<ContentBlock>> content = const AcpPatch<List<ContentBlock>>.unchanged(),
  3. AcpJsonObject? meta,
})

Creates a UserMessage value.

Implementation

UserMessage({
  required this.messageId,
  AcpPatch<List<ContentBlock>> content =
      const AcpPatch<List<ContentBlock>>.unchanged(),
  this.meta,
}) : content = content.map((value) => List<ContentBlock>.unmodifiable(value));