copyWith method

ContentBlockText copyWith({
  1. Object? type = _acpCopyWithAbsent,
  2. Object? annotations = _acpCopyWithAbsent,
  3. Object? text = _acpCopyWithAbsent,
  4. Object? meta = _acpCopyWithAbsent,
})

Implementation

ContentBlockText copyWith({
  Object? type = _acpCopyWithAbsent,
  Object? annotations = _acpCopyWithAbsent,
  Object? text = _acpCopyWithAbsent,
  Object? meta = _acpCopyWithAbsent,
}) => ContentBlockText(
  type: identical(type, _acpCopyWithAbsent) ? this.type : type as String,
  annotations: identical(annotations, _acpCopyWithAbsent)
      ? this.annotations
      : annotations as Annotations?,
  text: identical(text, _acpCopyWithAbsent) ? this.text : text as String,
  meta: identical(meta, _acpCopyWithAbsent) ? this.meta : meta as AcpJsonMap?,
);