copyWith method

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

Implementation

Diff copyWith({
  Object? path = _acpCopyWithAbsent,
  Object? oldText = _acpCopyWithAbsent,
  Object? newText = _acpCopyWithAbsent,
  Object? meta = _acpCopyWithAbsent,
}) => Diff(
  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?,
);