copyWith method
FileAnnotation
copyWith({
- String? id,
- List<
double> ? bbox, - String? createdAt,
- int? pageIndex,
- FileIconName? iconName,
- EmbeddedFile? embeddedFile,
- AnnotationAttachment? attachment,
- String? creatorName,
- double? opacity,
- int? pdfObjectId,
- List<
AnnotationFlag> ? flags, - String? updatedAt,
- String? name,
- String? subject,
Creates a copy of this annotation with the given fields replaced with the new values
Implementation
FileAnnotation copyWith({
String? id,
List<double>? bbox,
String? createdAt,
int? pageIndex,
FileIconName? iconName,
EmbeddedFile? embeddedFile,
AnnotationAttachment? attachment,
String? creatorName,
double? opacity,
int? pdfObjectId,
List<AnnotationFlag>? flags,
String? updatedAt,
String? name,
String? subject,
bool? hidden,
}) {
return FileAnnotation(
id: id ?? this.id,
bbox: bbox ?? this.bbox,
createdAt: createdAt ?? this.createdAt,
pageIndex: pageIndex ?? this.pageIndex,
iconName: iconName ?? this.iconName,
embeddedFile: embeddedFile ?? this.embeddedFile,
attachment: attachment ?? this.attachment,
creatorName: creatorName ?? this.creatorName,
opacity: opacity ?? this.opacity,
pdfObjectId: pdfObjectId ?? this.pdfObjectId,
flags: flags ?? this.flags,
updatedAt: updatedAt ?? AnnotationExtensions._currentTimestamp(),
name: name ?? this.name,
subject: subject ?? this.subject,
hidden: hidden ?? this.hidden,
);
}