copyWith method
AsyncContentBody
copyWith({
- String? value,
- AsyncContentBodyRepresentation? representation,
- String? renderTaskId,
- String? error,
- AsyncContentBodyStatus? status,
- List<
EmbeddedContent> ? embeddedContent, - WebResourceDependencies? webresource,
- AsyncContentBodyMediaToken? mediaToken,
- AsyncContentBodyExpandable? expandable,
- GenericLinks? links,
Implementation
AsyncContentBody copyWith(
{String? value,
AsyncContentBodyRepresentation? representation,
String? renderTaskId,
String? error,
AsyncContentBodyStatus? status,
List<EmbeddedContent>? embeddedContent,
WebResourceDependencies? webresource,
AsyncContentBodyMediaToken? mediaToken,
AsyncContentBodyExpandable? expandable,
GenericLinks? links}) {
return AsyncContentBody(
value: value ?? this.value,
representation: representation ?? this.representation,
renderTaskId: renderTaskId ?? this.renderTaskId,
error: error ?? this.error,
status: status ?? this.status,
embeddedContent: embeddedContent ?? this.embeddedContent,
webresource: webresource ?? this.webresource,
mediaToken: mediaToken ?? this.mediaToken,
expandable: expandable ?? this.expandable,
links: links ?? this.links,
);
}