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