copyWith method

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

Implementation

TextContent copyWith({
  Object? annotations = _acpCopyWithAbsent,
  Object? text = _acpCopyWithAbsent,
  Object? meta = _acpCopyWithAbsent,
}) => TextContent(
  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?,
);