copyWith method

ToolCallContentDiff copyWith({
  1. Object? type = _acpCopyWithAbsent,
  2. Object? path = _acpCopyWithAbsent,
  3. Object? oldText = _acpCopyWithAbsent,
  4. Object? newText = _acpCopyWithAbsent,
  5. Object? meta = _acpCopyWithAbsent,
})

Implementation

ToolCallContentDiff copyWith({
  Object? type = _acpCopyWithAbsent,
  Object? path = _acpCopyWithAbsent,
  Object? oldText = _acpCopyWithAbsent,
  Object? newText = _acpCopyWithAbsent,
  Object? meta = _acpCopyWithAbsent,
}) => ToolCallContentDiff(
  type: identical(type, _acpCopyWithAbsent) ? this.type : type as String,
  path: identical(path, _acpCopyWithAbsent) ? this.path : path as String,
  oldText: identical(oldText, _acpCopyWithAbsent)
      ? this.oldText
      : oldText as String?,
  newText: identical(newText, _acpCopyWithAbsent)
      ? this.newText
      : newText as String,
  meta: identical(meta, _acpCopyWithAbsent) ? this.meta : meta as AcpJsonMap?,
);