copyWith method
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,
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,
);
}