copyWith method

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

Implementation

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