copyWith method

ContentChunk copyWith({
  1. Object? content = _acpCopyWithAbsent,
  2. Object? messageId = _acpCopyWithAbsent,
  3. Object? meta = _acpCopyWithAbsent,
})

Implementation

ContentChunk copyWith({
  Object? content = _acpCopyWithAbsent,
  Object? messageId = _acpCopyWithAbsent,
  Object? meta = _acpCopyWithAbsent,
}) => ContentChunk(
  content: identical(content, _acpCopyWithAbsent)
      ? this.content
      : content as ContentBlock,
  messageId: identical(messageId, _acpCopyWithAbsent)
      ? this.messageId
      : messageId as MessageId?,
  meta: identical(meta, _acpCopyWithAbsent) ? this.meta : meta as AcpJsonMap?,
);