copyWith method

AsyncContentBody copyWith({
  1. String? value,
  2. AsyncContentBodyRepresentation? representation,
  3. String? renderTaskId,
  4. String? error,
  5. AsyncContentBodyStatus? status,
  6. List<EmbeddedContent>? embeddedContent,
  7. WebResourceDependencies? webresource,
  8. AsyncContentBodyMediaToken? mediaToken,
  9. AsyncContentBodyExpandable? expandable,
  10. 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,
  );
}