copyWith method

PromptAttachment copyWith({
  1. String? path,
  2. String? name,
  3. String? mimeType,
  4. int? size,
  5. String? data,
  6. bool? userApprovedOutsideWorkspace,
  7. bool? forceResourceLink,
})

Implementation

PromptAttachment copyWith({
  String? path,
  String? name,
  String? mimeType,
  int? size,
  String? data,
  bool? userApprovedOutsideWorkspace,
  bool? forceResourceLink,
}) {
  return PromptAttachment(
    path: path ?? this.path,
    name: name ?? this.name,
    mimeType: mimeType ?? this.mimeType,
    size: size ?? this.size,
    data: data ?? this.data,
    userApprovedOutsideWorkspace:
        userApprovedOutsideWorkspace ?? this.userApprovedOutsideWorkspace,
    forceResourceLink: forceResourceLink ?? this.forceResourceLink,
  );
}