copyWith method

Content copyWith({
  1. String? id,
  2. String? type,
  3. String? status,
  4. String? title,
  5. Space? space,
  6. ContentHistory? history,
  7. Version? version,
  8. List<Content>? ancestors,
  9. List<OperationCheckResult>? operations,
  10. ContentChildren? children,
  11. ContentChildType? childTypes,
  12. ContentChildren? descendants,
  13. Container? container,
  14. ContentBodyValue? body,
  15. ContentRestrictions? restrictions,
  16. ContentMetadata? metadata,
  17. Map<String, dynamic>? macroRenderedOutput,
  18. Map<String, dynamic>? extensions,
  19. ContentExpandable? expandable,
  20. GenericLinks? links,
})

Implementation

Content copyWith(
    {String? id,
    String? type,
    String? status,
    String? title,
    Space? space,
    ContentHistory? history,
    Version? version,
    List<Content>? ancestors,
    List<OperationCheckResult>? operations,
    ContentChildren? children,
    ContentChildType? childTypes,
    ContentChildren? descendants,
    Container? container,
    ContentBodyValue? body,
    ContentRestrictions? restrictions,
    ContentMetadata? metadata,
    Map<String, dynamic>? macroRenderedOutput,
    Map<String, dynamic>? extensions,
    ContentExpandable? expandable,
    GenericLinks? links}) {
  return Content(
    id: id ?? this.id,
    type: type ?? this.type,
    status: status ?? this.status,
    title: title ?? this.title,
    space: space ?? this.space,
    history: history ?? this.history,
    version: version ?? this.version,
    ancestors: ancestors ?? this.ancestors,
    operations: operations ?? this.operations,
    children: children ?? this.children,
    childTypes: childTypes ?? this.childTypes,
    descendants: descendants ?? this.descendants,
    container: container ?? this.container,
    body: body ?? this.body,
    restrictions: restrictions ?? this.restrictions,
    metadata: metadata ?? this.metadata,
    macroRenderedOutput: macroRenderedOutput ?? this.macroRenderedOutput,
    extensions: extensions ?? this.extensions,
    expandable: expandable ?? this.expandable,
    links: links ?? this.links,
  );
}