copyWith method

PromptResponse copyWith({
  1. Object? stopReason = _acpCopyWithAbsent,
  2. Object? meta = _acpCopyWithAbsent,
})

Implementation

PromptResponse copyWith({
  Object? stopReason = _acpCopyWithAbsent,
  Object? meta = _acpCopyWithAbsent,
}) => PromptResponse(
  stopReason: identical(stopReason, _acpCopyWithAbsent)
      ? this.stopReason
      : stopReason as StopReason,
  meta: identical(meta, _acpCopyWithAbsent) ? this.meta : meta as AcpJsonMap?,
);